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:
jonathandicarlo@jonathan-dicarlos-macbook-pro.local 2008-12-19 16:13:00 -08:00
Родитель e738ddf524
Коммит 583d29ae7d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;