Don't show "without snapshot" save option in Fx connector for now

Option requires a new Standalone build with ba53f256d
This commit is contained in:
Dan Stillman 2015-07-01 02:38:15 -04:00
parent ba53f256d6
commit 7ccc48b4ae

View file

@ -531,15 +531,18 @@ var Zotero_Browser = new function() {
});
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);
// 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);
}
if (captureState == tab.CAPTURE_STATE_TRANSLATABLE) {
popup.appendChild(document.createElement("menuseparator"));