Skip to content

Commit

Permalink
fix: avoid default keepIconLink fn recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
oflisback committed Jul 7, 2024
1 parent 0551f3b commit fd525ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,16 @@ const updateHtmlIconLink = (keepIconLink) => {
}
}

const defaultKeepIconLink = () => false

const Favicon = ({
iconSize = DefaultCanvasSize,
alertCount = null,
alertFillColor = 'red',
alertTextColor = 'white',
animated = true,
animationDelay = 500,
keepIconLink = () => false,
keepIconLink = defaultKeepIconLink,
renderOverlay = null,
url = null,
}) => {
Expand Down

0 comments on commit fd525ce

Please sign in to comment.