From fd525ce9ac276ad73b7732d3fe4375377c0f8a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ola=20Flisb=C3=A4ck?= Date: Sun, 7 Jul 2024 12:20:51 +0200 Subject: [PATCH] fix: avoid default keepIconLink fn recreation --- src/index.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 44d2adc..a845176 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -113,6 +113,8 @@ const updateHtmlIconLink = (keepIconLink) => { } } +const defaultKeepIconLink = () => false + const Favicon = ({ iconSize = DefaultCanvasSize, alertCount = null, @@ -120,7 +122,7 @@ const Favicon = ({ alertTextColor = 'white', animated = true, animationDelay = 500, - keepIconLink = () => false, + keepIconLink = defaultKeepIconLink, renderOverlay = null, url = null, }) => {