Fix some errors if pane is opened during initialization

This commit is contained in:
Dan Stillman 2015-02-24 22:06:18 -05:00
parent 93e3f68be8
commit b478d8f204
3 changed files with 7 additions and 7 deletions

View file

@ -316,13 +316,12 @@ function ZoteroService() {
})
.then(function () {
zContext.Zotero.debug("Initialized in "+(Date.now() - start)+" ms");
})
.done();
isFirstLoadThisSession = false;
});
}
else {
zContext.Zotero.debug("Already initialized");
}
isFirstLoadThisSession = false;
this.wrappedJSObject = zContext.Zotero;
} catch(e) {
var msg = typeof e == 'string' ? e : e.name;