diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index 328f5c5207..14e30a946c 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -74,8 +74,10 @@ function ZoteroProtocolHandler() { Zotero.API.Data.getGenerator(path) ); } - catch (e if e instanceof Zotero.Router.InvalidPathException) { - return "URL could not be parsed"; + catch (e) { + if (e instanceof Zotero.Router.InvalidPathException) { + return "URL could not be parsed"; + } } }); }