Force ZSA into online mode on startup

This commit is contained in:
Simon Kornblith 2012-02-16 14:42:21 -05:00
parent 1c83646212
commit d94b4683b3

View File

@ -22,6 +22,7 @@
***** END LICENSE BLOCK *****
*/
Components.utils.import("resource://gre/modules/Services.jsm");
Zotero.Standalone = new function() {
/**
@ -70,6 +71,9 @@ Zotero.Standalone = new function() {
};
this.init = function() {
// Set not offline
Services.io.offline = false;
// Add an observer to handle AMO requests
Components.classes["@mozilla.org/observer-service;1"].
getService(Components.interfaces.nsIObserverService).