Bug 1127557 - Invalid preference type getting/setting loop.ot.guid. rs=jaws

This commit is contained in:
Mark Banner 2015-02-02 12:32:54 +00:00
parent 0dcb26b187
commit 6fce974b6c
2 changed files with 6 additions and 2 deletions

View File

@ -108,7 +108,9 @@ loop.conversation = (function(mozL10n) {
callback(null, navigator.mozLoop.getLoopPref("ot.guid"));
},
set: function(guid, callback) {
navigator.mozLoop.setLoopPref("ot.guid", guid);
// See nsIPrefBranch
const PREF_STRING = 32;
navigator.mozLoop.setLoopPref("ot.guid", guid, PREF_STRING);
callback(null);
}
});

View File

@ -108,7 +108,9 @@ loop.conversation = (function(mozL10n) {
callback(null, navigator.mozLoop.getLoopPref("ot.guid"));
},
set: function(guid, callback) {
navigator.mozLoop.setLoopPref("ot.guid", guid);
// See nsIPrefBranch
const PREF_STRING = 32;
navigator.mozLoop.setLoopPref("ot.guid", guid, PREF_STRING);
callback(null);
}
});