[Pkg-mozext-commits] [adblock-plus] 06/17: Issue 2444 - Make preconfigurable property optional
David Prévot
taffit at moszumanska.debian.org
Mon Jun 8 20:50:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit ef69bbc35385cd4a61939b85ac07211307dbd166
Author: Felix Dahlke <felix at adblockplus.org>
Date: Mon May 4 19:04:55 2015 +0200
Issue 2444 - Make preconfigurable property optional
---
lib/prefs.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/prefs.js b/lib/prefs.js
index 7e10d2a..ff5e181 100644
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -23,11 +23,12 @@ function init()
request.send();
let defaults = request.response.defaults;
+ let preconfigurable = new Set(request.response.preconfigurable);
for (let pref in defaults)
{
let value = defaults[pref];
let [getter, setter] = typeMap[typeof value];
- if (request.response.preconfigurable.indexOf(pref) != -1)
+ if (preconfigurable.has(pref))
{
try
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list