mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 10:57:34 +09:00
Issue #991 Part 8: Toolkit everything else
This commit is contained in:
parent
e309515e66
commit
a24456a76d
16 changed files with 62 additions and 216 deletions
|
|
@ -154,13 +154,7 @@ this.GMPPrefs = {
|
|||
get: function(aKey, aDefaultValue, aPlugin) {
|
||||
if (aKey === this.KEY_APP_DISTRIBUTION ||
|
||||
aKey === this.KEY_APP_DISTRIBUTION_VERSION) {
|
||||
let prefValue = "default";
|
||||
try {
|
||||
prefValue = Services.prefs.getDefaultBranch(null).getCharPref(aKey);
|
||||
} catch (e) {
|
||||
// use default when pref not found
|
||||
}
|
||||
return prefValue;
|
||||
return Services.prefs.getDefaultBranch(null).getCharPref(aKey, "default");
|
||||
}
|
||||
return Preferences.get(this.getPrefKey(aKey, aPlugin), aDefaultValue);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue