Fix error creating context menu for independent save button
This commit is contained in:
parent
ce5328cbc4
commit
335c3d0b98
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ function addIcon() {
|
|||
const kNSXUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
button.setAttribute('disabled', 'true');
|
||||
button.setAttribute('type', 'menu-button');
|
||||
let menupopup = document.createElementNS(kNSXUL, "menupopup");
|
||||
let menupopup = button.ownerDocument.createElementNS(kNSXUL, "menupopup");
|
||||
menupopup.setAttribute('onpopupshowing', "Zotero_Browser.onStatusPopupShowing(event)");
|
||||
button.appendChild(menupopup);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue