Skip to content

Commit

Permalink
Merge branch 'master' into update-app-marketplace-imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
karelvuong committed Aug 14, 2024
2 parents 631ec3e + 45b340a commit 1fb5013
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 32 deletions.
41 changes: 22 additions & 19 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,37 +206,40 @@ function App() {
<Meta />
<Links />
<ThemeHead ssrTheme={Boolean(data.theme)} />
{process.env.NODE_ENV === "production" ? (
<script
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M5MRRZJ');`,
}}
/>
) : null}
</head>
<body
className="max-w-screen h-full overflow-x-hidden bg-honey-50 antialiased selection:bg-honey-900 dark:bg-[#0B111C]"
id="top"
>
{process.env.NODE_ENV === "production" ? (
<noscript>
<iframe
title="Google Tag Manager"
src="https://www.googletagmanager.com/ns.html?id=GTM-M5MRRZJ"
height="0"
width="0"
className="invisible hidden"
></iframe>
</noscript>
) : null}
<AppContextProvider>
<Outlet />
</AppContextProvider>
<ThemeBody ssrTheme={Boolean(data.theme)} />
<Scripts />
<ScrollRestoration />
<LiveReload />
<script
src="https://efficient-bloc-party.treasure.lol/script.js"
data-site="XBZCEUKN"
defer
data-auto="false"
/>
{process.env.NODE_ENV === "production" ? (
<script
dangerouslySetInnerHTML={{
__html: `
window.addEventListener('load', function() {
if (!window.location.host === "treasure-website-staging.fly.dev" && !new URLSearchParams(window.location.search).has('preview')) {
window.fathom.trackPageview();
}
})
`,
}}
/>
) : null}
</body>
</html>
);
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@
"lint-staged": {
"app/**/{*.ts,*.tsx}": "npm run lint"
}
}
}

0 comments on commit 1fb5013

Please sign in to comment.