Remove non-standard syntax for conditional exception handling

This commit is contained in:
Tom Najdek 2016-10-14 17:24:58 +01:00 committed by Dan Stillman
parent 39bc5398c9
commit 54a2126b7d

View File

@ -74,8 +74,10 @@ function ZoteroProtocolHandler() {
Zotero.API.Data.getGenerator(path) Zotero.API.Data.getGenerator(path)
); );
} }
catch (e if e instanceof Zotero.Router.InvalidPathException) { catch (e) {
return "URL could not be parsed"; if (e instanceof Zotero.Router.InvalidPathException) {
return "URL could not be parsed";
}
} }
}); });
} }