Skip to content

Commit

Permalink
docs: show different favicon for dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
YossiSaadi committed Dec 5, 2024
1 parent c83a4c4 commit eed43d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/.storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
<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>
<link rel="shortcut icon" href="/favicon.ico" />

<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";
}
</script>
<style>
body {
font-family: "Figtree", sans-serif;
Expand Down
Binary file not shown.

0 comments on commit eed43d7

Please sign in to comment.