Remove pref code for <Fx59
This commit is contained in:
parent
699e46c2f5
commit
83792757de
1 changed files with 0 additions and 14 deletions
|
@ -164,13 +164,6 @@ Zotero.Prefs = new function(){
|
|||
case branch.PREF_BOOL:
|
||||
return branch.setBoolPref(pref, value);
|
||||
case branch.PREF_STRING:
|
||||
// Pre-Fx59
|
||||
if (!branch.setStringPref) {
|
||||
let str = Cc["@mozilla.org/supports-string;1"]
|
||||
.createInstance(Ci.nsISupportsString);
|
||||
str.data = value;
|
||||
return branch.setComplexValue(pref, Ci.nsISupportsString, str);
|
||||
}
|
||||
return branch.setStringPref(pref, value);
|
||||
case branch.PREF_INT:
|
||||
return branch.setIntPref(pref, value);
|
||||
|
@ -183,13 +176,6 @@ Zotero.Prefs = new function(){
|
|||
}
|
||||
if (typeof value == 'string') {
|
||||
Zotero.debug("Creating string pref '" + pref + "'");
|
||||
// Pre-Fx59
|
||||
if (!branch.setStringPref) {
|
||||
let str = Cc["@mozilla.org/supports-string;1"]
|
||||
.createInstance(Ci.nsISupportsString);
|
||||
str.data = value;
|
||||
return branch.setComplexValue(pref, Ci.nsISupportsString, str);
|
||||
}
|
||||
return branch.setStringPref(pref, value);
|
||||
}
|
||||
if (parseInt(value) == value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue