From 7b10182e4a596c300462c542cf88fb7875073fd0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 30 Jun 2022 22:24:38 -0400 Subject: [PATCH] Disable obsolete "Open in External Viewer" menu option Hasn't done anything since in-browser viewing of certain file types in Zotero 4 for Firefox. Perhaps we'd bring it back at some point, but disable for now. --- chrome/content/zotero/locateMenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/locateMenu.js b/chrome/content/zotero/locateMenu.js index ef5164c686..f38fcd39bb 100644 --- a/chrome/content/zotero/locateMenu.js +++ b/chrome/content/zotero/locateMenu.js @@ -499,8 +499,9 @@ var Zotero_LocateMenu = new function() { this.useExternalViewer = true; this.canHandleItem = Zotero.Promise.coroutine(function* (item) { - return (this.useExternalViewer ^ Zotero.Prefs.get('launchNonNativeFiles')) - && (yield _getBestNonNativeAttachment(item)); + //return (this.useExternalViewer ^ Zotero.Prefs.get('launchNonNativeFiles')) + // && (yield _getBestNonNativeAttachment(item)); + return false; }); this.handleItems = Zotero.Promise.coroutine(function* (items, event) {