diff --git a/chrome/content/zotero/standalone/basicViewer.js b/chrome/content/zotero/standalone/basicViewer.js index ac200e353a..f2bb443054 100644 --- a/chrome/content/zotero/standalone/basicViewer.js +++ b/chrome/content/zotero/standalone/basicViewer.js @@ -76,6 +76,11 @@ window.addEventListener("click", function (event) { } }); +window.addEventListener('dragover', (e) => { + // Prevent default to allow drop (e.g. to allow dropping an XPI on the Add-ons window) + e.preventDefault(); +}); + function loadURI(uri, options = {}) { // browser.browsingContext.allowJavascript (sic) would seem to do what we want here, // but it has no effect. So we use sandboxFlags instead: