Restore "without snapshot" option in Fx connector
Will be supported in upcoming Standalone release
This commit is contained in:
parent
e92a54966c
commit
507ef011d8
1 changed files with 9 additions and 12 deletions
|
@ -531,18 +531,15 @@ var Zotero_Browser = new function() {
|
||||||
});
|
});
|
||||||
popup.appendChild(menuitem);
|
popup.appendChild(menuitem);
|
||||||
|
|
||||||
// TEMP: Requires a new Standalone build
|
menuitem = document.createElement("menuitem");
|
||||||
if (!Zotero.isConnector) {
|
menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot'));
|
||||||
menuitem = document.createElement("menuitem");
|
menuitem.setAttribute("image", webPageIcon);
|
||||||
menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot'));
|
menuitem.setAttribute("class", "menuitem-iconic");
|
||||||
menuitem.setAttribute("image", webPageIcon);
|
menuitem.addEventListener("command", function (event) {
|
||||||
menuitem.setAttribute("class", "menuitem-iconic");
|
Zotero_Browser.saveAsWebPage(false);
|
||||||
menuitem.addEventListener("command", function (event) {
|
event.stopPropagation();
|
||||||
Zotero_Browser.saveAsWebPage(false);
|
});
|
||||||
event.stopPropagation();
|
popup.appendChild(menuitem);
|
||||||
});
|
|
||||||
popup.appendChild(menuitem);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (captureState == tab.CAPTURE_STATE_TRANSLATABLE) {
|
if (captureState == tab.CAPTURE_STATE_TRANSLATABLE) {
|
||||||
popup.appendChild(document.createElement("menuseparator"));
|
popup.appendChild(document.createElement("menuseparator"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue