Bug 751144 - warning: ok is undefined in dom/base/WebApps.js. r=fabrice

This commit is contained in:
Vivien Nicolas 2012-05-04 20:02:05 +02:00
parent bc2da29d07
commit 4a78ee09cf

View File

@ -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;
},