Allowing passing window to loadZoteroPane() support function
This commit is contained in:
parent
6d64526648
commit
57dfd1885d
1 changed files with 4 additions and 2 deletions
|
@ -44,8 +44,10 @@ function loadBrowserWindow() {
|
||||||
/**
|
/**
|
||||||
* Loads a Zotero pane in a new window and selects My Library. Returns the containing window.
|
* Loads a Zotero pane in a new window and selects My Library. Returns the containing window.
|
||||||
*/
|
*/
|
||||||
var loadZoteroPane = Zotero.Promise.coroutine(function* () {
|
var loadZoteroPane = Zotero.Promise.coroutine(function* (win) {
|
||||||
var win = yield loadBrowserWindow();
|
if (!win) {
|
||||||
|
var win = yield loadBrowserWindow();
|
||||||
|
}
|
||||||
Zotero.Prefs.clear('lastViewedFolder');
|
Zotero.Prefs.clear('lastViewedFolder');
|
||||||
win.ZoteroOverlay.toggleDisplay(true);
|
win.ZoteroOverlay.toggleDisplay(true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue