From 54a2126b7d64d348ea92aff13bbedb8ea2122b32 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Fri, 14 Oct 2016 17:24:58 +0100 Subject: [PATCH] Remove non-standard syntax for conditional exception handling --- components/zotero-protocol-handler.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"; + } } }); }