Bug 442830 - "modules/distribution.js: int and bool prefs are not set correctly" [p=yoshino@mozilla-japan.org (Kohei Yoshino) r=thunder r=bsmedberg a=mconnor]
git-svn-id: svn://10.0.0.236/trunk@252998 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
00a3cf6e59
commit
d9dee71f5e
@ -271,10 +271,10 @@ DistributionCustomizer.prototype = {
|
||||
try {
|
||||
let value = eval(this._ini.getString("Preferences", key));
|
||||
switch (typeof value) {
|
||||
case "bool":
|
||||
case "boolean":
|
||||
defaults.setBoolPref(key, value);
|
||||
break;
|
||||
case "int":
|
||||
case "number":
|
||||
defaults.setIntPref(key, value);
|
||||
break;
|
||||
case "string":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user