Bug 1101006 - Refactor mozLoop.{get, set}LoopCharPref and mozLoop.{get, set}LoopBoolPref to mozLoop.{get, set}Pref that uses getPrefType. r=mikedeboer

This commit is contained in:
Jared Wein
2014-11-19 13:29:27 -05:00
parent c34e86f04c
commit 4c5e2824f1
22 changed files with 149 additions and 190 deletions

View File

@@ -338,7 +338,7 @@ loop.store.ActiveRoomStore = (function() {
});
// We've connected with a third-party, therefore stop displaying the ToS etc.
this._mozLoop.setLoopCharPref("seenToS", "seen");
this._mozLoop.setLoopPref("seenToS", "seen");
},
/**

View File

@@ -48,7 +48,7 @@ loop.shared.utils = (function(mozL10n) {
*/
function getBoolPreference(prefName) {
if (navigator.mozLoop) {
return !!navigator.mozLoop.getLoopBoolPref(prefName);
return !!navigator.mozLoop.getLoopPref(prefName);
}
return !!localStorage.getItem(prefName);
@@ -110,7 +110,7 @@ loop.shared.utils = (function(mozL10n) {
mozL10n.get("share_email_body4", {
callUrl: callUrl,
clientShortname: mozL10n.get("clientShortname2"),
learnMoreUrl: navigator.mozLoop.getLoopCharPref("learnMoreUrl")
learnMoreUrl: navigator.mozLoop.getLoopPref("learnMoreUrl")
}),
recipient
);