зеркало из https://github.com/mozilla/pjs.git
Changed components/Weave.js to start up the service on the 'profile-after-change' event instead of the 'sessionstore-windows-restored' event, since the latter doesn't exist on Fennec.
This commit is contained in:
Родитель
e738ddf524
Коммит
583d29ae7d
|
@ -51,9 +51,9 @@ WeaveService.prototype = {
|
|||
case "app-startup":
|
||||
let os = Components.classes["@mozilla.org/observer-service;1"].
|
||||
getService(Components.interfaces.nsIObserverService);
|
||||
os.addObserver(this, "sessionstore-windows-restored", true);
|
||||
os.addObserver(this, "profile-after-change", true);
|
||||
break;
|
||||
case "sessionstore-windows-restored":
|
||||
case "profile-after-change":
|
||||
Components.utils.import("resource://weave/service.js");
|
||||
Weave.Service.onStartup();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче