diff --git a/iconify-icon/icon/src/attributes/icon/object.ts b/iconify-icon/icon/src/attributes/icon/object.ts index 18bb1c1..5e2bba4 100644 --- a/iconify-icon/icon/src/attributes/icon/object.ts +++ b/iconify-icon/icon/src/attributes/icon/object.ts @@ -15,7 +15,7 @@ export function testIconObject( ...obj, }; } - } catch { + } catch (err) { // } } diff --git a/iconify-icon/icon/src/component.ts b/iconify-icon/icon/src/component.ts index 5dacdd5..7405cf0 100644 --- a/iconify-icon/icon/src/component.ts +++ b/iconify-icon/icon/src/component.ts @@ -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 } }