FileHandlers: Fix unintended fallthrough in switch

May have been responsible for this:
https://forums.zotero.org/discussion/comment/483004#Comment_483004
This commit is contained in:
Abe Jellinek 2025-03-27 10:32:12 -04:00 committed by Dan Stillman
parent e700f5ca98
commit ea4f5fee60

View file

@ -313,11 +313,13 @@ Zotero.FileHandlers = {
switch (appPath.toLowerCase()) {
case 'okular':
appPath = '/usr/bin/okular';
break;
// It's "Document Viewer" on stock Ubuntu
case 'document viewer':
case 'evince':
appPath = '/usr/bin/evince';
break;
}
}
else if (await IOUtils.exists('/usr/bin/okular')) {