mirror of https://github.com/gorhill/uBlock.git
Do not call onReady if addon is installing
If the uBlock extension is installed globally for all users on a machine, a user's first run of Firefox will fail to load uBlock because the call to appShell.hiddenDOMWindow will throw an exception. A second run of Firefox will load uBlock successfully. The change will skip the call to onReady if the reason for the call to startup is because the addon is being installed.
This commit is contained in:
parent
e858c91224
commit
93fb1dd251
|
@ -86,7 +86,7 @@ function startup(data, reason) {
|
|||
);
|
||||
};
|
||||
|
||||
if ( reason !== APP_STARTUP ) {
|
||||
if ( reason !== APP_STARTUP && reason !== ADDON_INSTALL) {
|
||||
onReady();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue