Issue #991 Part 7: Toolkit Components

This commit is contained in:
Ascrod 2019-04-13 10:53:58 -04:00 • committed by Roy Tam
commit e309515e66
18 changed files with 55 additions and 204 deletions

View file

@ -243,16 +243,7 @@ function getLocale() {
/* Get the distribution pref values, from defaults only */
function getDistributionPrefValue(aPrefName) {
var prefValue = "default";
var defaults = gPref.getDefaultBranch(null);
try {
prefValue = defaults.getCharPref(aPrefName);
} catch (e) {
// use default when pref not found
}
return prefValue;
return gPref.getDefaultBranch(null).getCharPref(aPrefName, "default");
}
/**