2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-08 14:20:57 +00:00

Do not use optional catch binding in web component

This commit is contained in:
Vjacheslav Trushkin 2022-05-16 20:12:59 +03:00
parent ff94eb937b
commit 7fe80a2a4c
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export function testIconObject(
...obj,
};
}
} catch {
} catch (err) {
//
}
}

View File

@ -67,7 +67,7 @@ export function defineIconifyIcon(
try {
customElements = window.customElements;
ParentClass = window.HTMLElement;
} catch {
} catch (err) {
return;
}
@ -188,7 +188,7 @@ export function defineIconifyIcon(
if (value && value.slice(0, 1) === '{') {
try {
return JSON.parse(value);
} catch {
} catch (err) {
//
}
}
@ -225,7 +225,7 @@ export function defineIconifyIcon(
try {
(root.lastChild as SVGSVGElement).setCurrentTime(0);
return;
} catch {
} catch (err) {
// Failed: setCurrentTime() is not supported
}
}