From 7ccc48b4ae0dc19b3133a19644f3dd0dff6fa43d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 1 Jul 2015 02:38:15 -0400 Subject: [PATCH] Don't show "without snapshot" save option in Fx connector for now Option requires a new Standalone build with ba53f256d --- chrome/content/zotero/browser.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/chrome/content/zotero/browser.js b/chrome/content/zotero/browser.js index 4f3d48281..e13c682ae 100644 --- a/chrome/content/zotero/browser.js +++ b/chrome/content/zotero/browser.js @@ -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"));