Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { cn } from './lib/cn'
export const links: LinksFunction = () => [
{
rel: 'icon',
href: '/favicon.svg',
href: '/favicon.ico',
type: 'image/svg+xml'
},
{ rel: 'stylesheet', href: stylesheet },
Expand All @@ -40,15 +40,15 @@ export const links: LinksFunction = () => [
export async function loader() {
return json({
ENV: {
STRIPE_PUBLIC_KEY: process.env.STRIPE_PUBLIC_KEY,
},
});
STRIPE_PUBLIC_KEY: process.env.STRIPE_PUBLIC_KEY
}
})
}

export default function App() {
const navigation = useNavigation()
const location = useLocation()
const data = useLoaderData<typeof loader>();
const data = useLoaderData<typeof loader>()

// detect if it's loaded in wm tools
const isEmbeded = location.pathname.indexOf('extension') !== -1
Expand Down Expand Up @@ -95,7 +95,7 @@ export default function App() {
</div>
<script
dangerouslySetInnerHTML={{
__html: `window.ENV = ${JSON.stringify(data.ENV)}`,
__html: `window.ENV = ${JSON.stringify(data.ENV)}`
}}
/>
<ScrollRestoration />
Expand Down