Restore "without snapshot" option in Fx connector

Will be supported in upcoming Standalone release
This commit is contained in:
Dan Stillman 2015-07-09 19:10:32 -04:00
parent e92a54966c
commit 507ef011d8

View file

@ -531,18 +531,15 @@ var Zotero_Browser = new function() {
});
popup.appendChild(menuitem);
// TEMP: Requires a new Standalone build
if (!Zotero.isConnector) {
menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot'));
menuitem.setAttribute("image", webPageIcon);
menuitem.setAttribute("class", "menuitem-iconic");
menuitem.addEventListener("command", function (event) {
Zotero_Browser.saveAsWebPage(false);
event.stopPropagation();
});
popup.appendChild(menuitem);
}
menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", Zotero.getString('ingester.saveToZoteroAsWebPageWithoutSnapshot'));
menuitem.setAttribute("image", webPageIcon);
menuitem.setAttribute("class", "menuitem-iconic");
menuitem.addEventListener("command", function (event) {
Zotero_Browser.saveAsWebPage(false);
event.stopPropagation();
});
popup.appendChild(menuitem);
if (captureState == tab.CAPTURE_STATE_TRANSLATABLE) {
popup.appendChild(document.createElement("menuseparator"));