Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -26,7 +26,14 @@ |
pref = pref.substr(branchName.length); |
let [getter, setter] = typeMap[typeof value]; |
- setter(defaultBranch, pref, value); |
+ try |
+ { |
+ getter(defaultBranch, pref); |
+ } |
+ catch (e) |
+ { |
+ setter(defaultBranch, pref, value); |
+ } |
defineProperty(pref, false, getter, setter); |
} |
}; |