Skip to content

Commit 53bf2c1

Browse files
committed
docs: clarify _debugWarn behavior
1 parent 2340ded commit 53bf2c1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/social-share-button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ class SocialShareButton {
711711
* @param {Error} err - The caught error instance.
712712
*/
713713
_debugWarn(message, err) {
714+
// _debugWarn: emit analytics warnings only in debug mode for visibility.
714715
if (!this.options.debug) return;
715716
// eslint-disable-next-line no-console
716717
console.warn("[SocialShareButton Analytics]", message, err);

0 commit comments

Comments
 (0)