Fix some errors if pane is opened during initialization
This commit is contained in:
parent
93e3f68be8
commit
b478d8f204
3 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue