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