Skip to content
Snippets Groups Projects
Commit 07b62669 authored by Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt
Browse files

Specify exception identifer in catch block

parent 75e11922
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -152,7 +152,7 @@ export function isSafeURL(url) {
try {
const parsedUrl = new URL(url, getBaseURL());
return ['http:', 'https:'].includes(parsedUrl.protocol);
} catch {
} catch (e) {
return false;
}
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment