mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 12:03:08 +00:00
Bug 751144 - warning: ok is undefined in dom/base/WebApps.js. r=fabrice
This commit is contained in:
parent
bc2da29d07
commit
4a78ee09cf
@ -40,12 +40,9 @@ WebappsRegistry.prototype = {
|
||||
return false;
|
||||
|
||||
if (aManifest.installs_allowed_from) {
|
||||
ok = false;
|
||||
aManifest.installs_allowed_from.forEach(function(aOrigin) {
|
||||
if (aOrigin == "*" || aOrigin == aInstallOrigin)
|
||||
ok = true;
|
||||
return aManifest.installs_allowed_from.some(function(aOrigin) {
|
||||
return aOrigin == "*" || aOrigin == aInstallOrigin;
|
||||
});
|
||||
return ok;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user