Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -23,11 +23,12 @@ |
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 |
{ |