www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 54a2126b7d64d348ea92aff13bbedb8ea2122b32
parent 39bc5398c900c3529784be067c85d280d219447e
Author: Tom Najdek <tom@doppnet.com>
Date:   Fri, 14 Oct 2016 17:24:58 +0100

Remove non-standard syntax for conditional exception handling

Diffstat:
Mcomponents/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 @@ -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"; + } } }); }