Skip to content

Commit

Permalink
docs: favicon always exists, just change if localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Dec 5, 2024
1 parent eed43d7 commit f7f9b66
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/core/.storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
<meta property="og:title" content="Vibe Design System" />
<meta property="og:image" content="https://irp.cdn-website.com/33477119/dms3rep/multi/og-banner.jpeg" />
<title>Vibe Design System</title>

<script src="https://use.fontawesome.com/660238b999.js"></script>
<script type="module">
if (!document.querySelector("link[rel~='icon']")) {
faviconLink = document.createElement("link");
faviconLink.rel = "icon";
document.head.appendChild(faviconLink);
faviconLink.href = import.meta.url.includes("localhost") ? "/favicon-dev.ico" : "/favicon.ico";
const faviconLink = document.querySelector("link[rel='icon']");
if (import.meta.url.includes("localhost")) {
faviconLink.href = "/favicon-dev.ico";
}
</script>
<style>
Expand Down

0 comments on commit f7f9b66

Please sign in to comment.