Force ZSA into online mode on startup
This commit is contained in:
parent
1c83646212
commit
d94b4683b3
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue
Block a user