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:
parent
ff94eb937b
commit
7fe80a2a4c
@ -15,7 +15,7 @@ export function testIconObject(
|
|||||||
...obj,
|
...obj,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} catch {
|
} catch (err) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user