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:
@@ -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");
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user