Fix running of tests after adding tab bar
This commit is contained in:
parent
5eeae576b4
commit
ea04c32c9d
2 changed files with 10 additions and 0 deletions
|
@ -41,6 +41,15 @@ var ZoteroOverlay = new function () {
|
||||||
throw new Error("Skipping loading");
|
throw new Error("Skipping loading");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Keep in sync with standalone.xul
|
||||||
|
if (Zotero.test) {
|
||||||
|
let ns = 'http://www.w3.org/1999/xhtml';
|
||||||
|
let div = document.createElementNS(ns, 'div');
|
||||||
|
let beforeNode = document.getElementById('browser');
|
||||||
|
div.id = 'tab-bar-container';
|
||||||
|
beforeNode.parentNode.insertBefore(div, beforeNode);
|
||||||
|
}
|
||||||
|
|
||||||
ZoteroPane.init();
|
ZoteroPane.init();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
|
|
|
@ -416,6 +416,7 @@
|
||||||
</toolbaritem>
|
</toolbaritem>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
</toolbox>
|
</toolbox>
|
||||||
|
<!-- Keep in sync with Zotero.test conditional block in overlay.js -->
|
||||||
<div xmlns="http://www.w3.org/1999/xhtml" id="tab-bar-container"/>
|
<div xmlns="http://www.w3.org/1999/xhtml" id="tab-bar-container"/>
|
||||||
<!--<toolbarpalette/>
|
<!--<toolbarpalette/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue