diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index 992f8686d4..8194dff149 100644 --- a/chrome/content/zotero/standalone/basicViewer.js +++ b/chrome/content/zotero/standalone/basicViewer.js @@ -33,6 +33,7 @@ var browser; window.addEventListener("load", /*async */function () { browser = document.querySelector('browser'); + window.gBrowser = browser; // For ZoomManager browser.addEventListener('pagetitlechanged', () => { document.title = browser.contentTitle || browser.currentURI.spec; diff --git a/chrome/content/zotero/standalone/basicViewer.xhtml b/chrome/content/zotero/standalone/basicViewer.xhtml index 7652405f6e..9015e453f1 100644 --- a/chrome/content/zotero/standalone/basicViewer.xhtml +++ b/chrome/content/zotero/standalone/basicViewer.xhtml @@ -64,6 +64,7 @@ Services.scriptloader.loadSubScript("chrome://global/content/globalOverlay.js", this); Services.scriptloader.loadSubScript("chrome://global/content/contentAreaUtils.js", this); Services.scriptloader.loadSubScript("chrome://global/content/printUtils.js", this); + Services.scriptloader.loadSubScript("chrome://global/content/viewZoomOverlay.js", this); if (Zotero.isMac) { Services.scriptloader.loadSubScript("chrome://global/content/macWindowMenu.js", this); } @@ -85,12 +86,25 @@ + + + + + + + + + + + + + @@ -179,6 +193,21 @@ + + + + + + + + +