Bug 1127557 - Invalid preference type getting/setting loop.ot.guid. rs=jaws
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user