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