mirror of https://github.com/gorhill/uBlock.git
fix regression in Firefox legacy version
This commit is contained in:
parent
eb789939ca
commit
1e8d966938
|
@ -913,10 +913,13 @@ var updateFirst = function() {
|
||||||
// Allow self-hosted dev build to update: if update_url is present but
|
// Allow self-hosted dev build to update: if update_url is present but
|
||||||
// null, assume the extension is hosted on AMO.
|
// null, assume the extension is hosted on AMO.
|
||||||
if ( noRemoteResources === undefined ) {
|
if ( noRemoteResources === undefined ) {
|
||||||
var manifest = chrome.runtime.getManifest();
|
var manifest =
|
||||||
|
typeof browser === 'object' &&
|
||||||
|
browser.runtime.getManifest();
|
||||||
noRemoteResources =
|
noRemoteResources =
|
||||||
typeof vAPI.webextFlavor === 'string' &&
|
typeof vAPI.webextFlavor === 'string' &&
|
||||||
vAPI.webextFlavor.startsWith('Mozilla-Firefox-') &&
|
vAPI.webextFlavor.startsWith('Mozilla-Firefox-') &&
|
||||||
|
manifest instanceof Object &&
|
||||||
manifest.applications instanceof Object &&
|
manifest.applications instanceof Object &&
|
||||||
manifest.applications.gecko instanceof Object &&
|
manifest.applications.gecko instanceof Object &&
|
||||||
manifest.applications.gecko.update_url === null;
|
manifest.applications.gecko.update_url === null;
|
||||||
|
|
Loading…
Reference in New Issue