diff options
| author | Adam Soltys <[email protected]> | 2023-12-01 15:17:58 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-01 15:17:58 -0800 |
| commit | 9a1cbd040ead975d51f23f9546ba8d8bf9034207 (patch) | |
| tree | fef443bc1f831c602b1fe4a763f993cdb293690b /src/routes/+layout.svelte | |
| parent | da8cbb695c9516130ba6ed8f14b922f260d2f0c6 (diff) | |
| download | coinos-ui-9a1cbd040ead975d51f23f9546ba8d8bf9034207.tar.gz coinos-ui-9a1cbd040ead975d51f23f9546ba8d8bf9034207.zip | |
optimizing
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 2cd0c473..32d31fa8 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,9 +1,11 @@ <script> + import { PUBLIC_DOMAIN } from '$env/static/public'; import '../app.css'; import { loading, t } from '$lib/translations'; export let data; - let { host, pathname } = data; + let { pathname } = data; + let host = PUBLIC_DOMAIN.includes("localhost") ? `http://${PUBLIC_DOMAIN}` : `https://${PUBLIC_DOMAIN}` </script> <svelte:head> @@ -11,7 +13,7 @@ <meta property="og:title" content="coinos" /> <meta name="twitter:title" content="coinos" /> - <meta property="og:image" content={`${host}/icons/logo.svg`} /> + <meta property="og:image" content={`${host}/images/logo.png`} /> <meta property="og:type" content="website" /> <meta property="og:description" content="An easy to use bitcoin web wallet" /> @@ -19,7 +21,7 @@ <meta name="keywords" content="coinos easy bitcoin web wallet" /> - <meta name="twitter:image" content={`${host}/icons/logo.svg`} /> + <meta name="twitter:image" content={`${host}/images/logo.png`} /> <meta name="twitter:card" content="summary_large_image" /> <meta property="og:url" content={host + pathname} /> @@ -28,7 +30,7 @@ </svelte:head> {#if !$loading} -<slot /> + <slot /> {/if} <style global> |
