зеркало из https://github.com/mozilla/gecko-dev.git
reset lastSync pref before setting it, as some clients have mismatched types saved
This commit is contained in:
Родитель
a035048b96
Коммит
e8c14a7b1b
|
@ -201,6 +201,7 @@ SyncEngine.prototype = {
|
|||
return Svc.Prefs.get(this.name + ".lastSync", 0);
|
||||
},
|
||||
set lastSync(value) {
|
||||
Svc.Prefs.reset(this.name + ".lastSync");
|
||||
if (typeof(value) == "string")
|
||||
value = parseInt(value);
|
||||
Svc.Prefs.set(this.name + ".lastSync", value);
|
||||
|
|
Загрузка…
Ссылка в новой задаче