Skip to content

Commit

Permalink
turn off hydrate just to test
Browse files Browse the repository at this point in the history
  • Loading branch information
PH4NTOMiki committed Mar 4, 2022
1 parent 5a293d9 commit 40d2acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sites/kit.svelte.dev/src/routes/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@
import '@sveltejs/site-kit/base.css';
import { browser } from '$app/env';
import { page, navigating } from '$app/stores';
import { onMount } from 'svelte';
import { Icon, Icons, Nav, NavItem, PreloadingIndicator, SkipLink } from '@sveltejs/site-kit';
import Search from '$lib/search/Search.svelte';
import SearchBox from '$lib/search/SearchBox.svelte';
//let el;
let h = 0;
let w = 0;
/*onMount(() => {
h = el.clientHeight;
w = el.clientWidth;
document.documentElement.style.setProperty('--ukr-footer-height', `${h}px`);
});*/
$: browser && document.documentElement.style.setProperty('--ukr-footer-height', `${h}px`);
</script>

<Icons />
Expand Down Expand Up @@ -54,7 +48,7 @@
</svelte:fragment>
</Nav>
<a target="_blank" rel="noopener noreferrer" href="https://www.stopputin.net/"
><div class="ukr" bind:this={el}>
><div class="ukr" bind:clientHeight={h} bind:clientWidth={w}>
{#if w < 830}
<strong>We stand with Ukraine.</strong>
Donate →
Expand Down
3 changes: 3 additions & 0 deletions sites/kit.svelte.dev/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const config = {
prerender: {
entries: ['*', '/content.json']
},
browser: {
hydrate: false
},

vite: {
plugins: [imagetools()],
Expand Down

0 comments on commit 40d2acf

Please sign in to comment.