Remove non-standard syntax for conditional exception handling
This commit is contained in:
parent
39bc5398c9
commit
54a2126b7d
|
@ -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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user