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.
This commit is contained in:
Dan Stillman 2022-06-30 22:24:38 -04:00
parent 744837cce7
commit 7b10182e4a

View file

@ -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) {