2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-08 15:54:09 +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, ...obj,
}; };
} }
} catch { } catch (err) {
// //
} }
} }

View File

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