1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-01 18:10:17 +12:00
This commit is contained in:
gorhill 2015-09-26 11:08:50 -04:00
parent 2d7ffc639e
commit 50189a450f

View file

@ -19,7 +19,7 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global ADDON_UNINSTALL, APP_SHUTDOWN, APP_STARTUP */
/* global ADDON_UNINSTALL, APP_SHUTDOWN */
/* exported startup, shutdown, install, uninstall */
'use strict';
@ -46,7 +46,7 @@ const restartListener = {
/******************************************************************************/
function startup(data, reason) {
function startup(data/*, reason*/) {
if ( data !== undefined ) {
version = data.version;
}
@ -84,7 +84,13 @@ function startup(data, reason) {
);
};
if ( reason !== APP_STARTUP ) {
var ready = false;
try {
ready = appShell.hiddenDOMWindow &&
appShell.hiddenDOMWindow.document;
} catch (ex) {
}
if ( ready ) {
onReady();
return;
}
@ -99,7 +105,7 @@ function startup(data, reason) {
}
try {
appShell.hiddenDOMWindow;
void appShell.hiddenDOMWindow;
} catch (ex) {
return;
}