Use server detected host for sharing URLs
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { site } from '../utils/store'
|
||||
|
||||
// Components
|
||||
@@ -12,20 +11,18 @@
|
||||
// Props
|
||||
export let status
|
||||
export let error
|
||||
|
||||
|
||||
/*
|
||||
** Run code on browser only
|
||||
*/
|
||||
onMount(() => {
|
||||
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{$site.seo_name} - {error.message}</title>
|
||||
</svelte:head>
|
||||
|
||||
{#if process.env.NODE_ENV === 'development' && error.stack}
|
||||
<div class="wrap">
|
||||
<pre>{error.stack}</pre>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<section class="page">
|
||||
<div class="wrap">
|
||||
<div class="page__top">
|
||||
@@ -38,10 +35,7 @@
|
||||
</div>
|
||||
|
||||
<div class="page__description style-description">
|
||||
<p>
|
||||
Oh no…
|
||||
Looks like something wrong just happened. Like a nasty error {status}.
|
||||
</p>
|
||||
<p>Oh no… Looks like something wrong just happened. Like a nasty error {status}.</p>
|
||||
<Button href="/" class="button" text="Go back to the homepage" on:click={() => window.location.href = '/'} />
|
||||
</div>
|
||||
|
||||
@@ -50,10 +44,3 @@
|
||||
|
||||
<Footer />
|
||||
</section>
|
||||
|
||||
|
||||
{#if process.env.NODE_ENV === 'development' && error.stack}
|
||||
<div class="wrap">
|
||||
<pre>{error.stack}</pre>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user