diff options
| author | Adam Soltys <[email protected]> | 2024-04-25 14:59:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-04-25 14:59:30 -0700 |
| commit | d3d9a28ccbf4eb943f26da2db3bfbf4af21cc0d2 (patch) | |
| tree | e34c698063b66362a76e2de27164381b27c4de9e /src/routes | |
| parent | 89e69e740e0011858eca3af7d402194e3e9019f3 (diff) | |
| download | coinos-ui-d3d9a28ccbf4eb943f26da2db3bfbf4af21cc0d2.tar.gz coinos-ui-d3d9a28ccbf4eb943f26da2db3bfbf4af21cc0d2.zip | |
master locales
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/+layout.svelte | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 3354e8c5..a07c42cb 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,9 +1,10 @@ <script> + import { browser } from "$app/environment"; import { PUBLIC_DOMAIN } from "$env/static/public"; import "../app.css"; - import "../swapee/css/animation.css"; - import { loading, t } from "$lib/translations"; + import { onMount } from "svelte"; + import { installPrompt } from "$lib/store"; export let data; let { pathname } = data; @@ -11,12 +12,20 @@ let host = PUBLIC_DOMAIN.includes("localhost") ? `http://${PUBLIC_DOMAIN}` : `https://${PUBLIC_DOMAIN}`; + + onMount(() => { + if (!browser) return; + window.addEventListener("beforeinstallprompt", (event) => { + event.preventDefault(); + $installPrompt = event; + }); + }); </script> <svelte:head> - <title>swapee</title> - <meta property="og:title" content="swapee" /> - <meta name="twitter:title" content="swapee" /> + <title>coinos</title> + <meta property="og:title" content="coinos" /> + <meta name="twitter:title" content="coinos" /> <meta property="og:image" content={`${host}/images/logo.webp`} /> @@ -24,14 +33,14 @@ <meta property="og:description" content="An easy to use bitcoin web wallet" /> <meta name="description" content="An easy to use bitcoin web wallet" /> - <meta name="keywords" content="swapee easy bitcoin web wallet" /> + <meta name="keywords" content="coinos easy bitcoin web wallet" /> <meta name="twitter:image" content={`${host}/images/logo.webp`} /> <meta name="twitter:card" content="summary_large_image" /> - <meta property="og:url" content={host + pathname} /> - <meta name="twitter:site" content="@swapeewallet" /> - <meta name="twitter:creator" content="@swapeewallet" /> + <meta property="og:url" content={host + pathname} /> + <meta name="twitter:site" content="@coinoswallet" /> + <meta name="twitter:creator" content="@coinoswallet" /> </svelte:head> {#if !$loading} |
