mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
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:
parent
929147b33a
commit
5a5f2c2e59
1 changed files with 2 additions and 0 deletions
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue