This repository was archived by the owner on Aug 27, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,12 +203,6 @@ async function handlePopupMessage(message) {
203203 return browser . tabs . create ( { url : "about:customizing" } ) ;
204204 } case "devGetTools" : {
205205 return browser . tabs . create ( { url : "https://addons.mozilla.org/firefox/collections/mozilla/webdeveloper/" } ) ;
206- } case "printPreview" : {
207- return browser . tabs . printPreview ( ) ;
208- } case "print" : {
209- if ( browser . tabs . print ) {
210- return browser . tabs . print ( ) ;
211- }
212206 } case "fullscreen" : {
213207 let prevState = window . state ;
214208 let newState = prevStates . get ( window . id ) ;
@@ -224,6 +218,12 @@ async function handlePopupMessage(message) {
224218 } case "exit" : {
225219 let windows = await browser . windows . getAll ( ) ;
226220 windows . forEach ( ( { id } ) => browser . windows . remove ( id ) ) ;
221+ } case "printPreview" : {
222+ return browser . tabs . printPreview ( ) ;
223+ } case "print" : {
224+ if ( browser . tabs . print ) {
225+ return browser . tabs . print ( ) ;
226+ }
227227 } default : {
228228 if ( method . startsWith ( "openHelp" ) ) {
229229 let lang = browser . i18n . getUILanguage ( ) . replace ( / _ / g, "-" ) ;
You can’t perform that action at this time.
0 commit comments