Skip to content

Commit b427b9e

Browse files
added //ignore comment on empty catch(_) block
1 parent 0749e4f commit b427b9e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/social-share-button.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,13 +731,15 @@ class SocialShareButton {
731731
const el = this._getContainer();
732732
(el || document).dispatchEvent(domEvent);
733733
} catch (_) {}
734+
//ignore
734735
}
735736

736737
// Path 2 — onAnalytics callback (direct, single-consumer hook)
737738
if (typeof this.options.onAnalytics === 'function') {
738739
try {
739740
this.options.onAnalytics(payload);
740741
} catch (_) {}
742+
//ignore
741743
}
742744

743745
// Path 3 — plugin / adapter registry (supports multiple simultaneous consumers)
@@ -747,6 +749,7 @@ class SocialShareButton {
747749
try {
748750
plugin.track(payload);
749751
} catch (_) {}
752+
//ignore
750753
}
751754
}
752755
}

0 commit comments

Comments
 (0)