Remove green leftovers
This commit is contained in:
parent
e1c2565db2
commit
f3e92b7b64
1 changed files with 0 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
||||||
<script>
|
<script>
|
||||||
import { browser } from "$app/environment";
|
|
||||||
import { page } from "$app/state";
|
import { page } from "$app/state";
|
||||||
import Footer from "$lib/components/Footer.svelte";
|
import Footer from "$lib/components/Footer.svelte";
|
||||||
import Navbar from "$lib/components/Navbar.svelte";
|
import Navbar from "$lib/components/Navbar.svelte";
|
||||||
|
@ -11,16 +10,9 @@
|
||||||
|
|
||||||
/** @type {Props} */
|
/** @type {Props} */
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
const green = browser
|
|
||||||
? window.localStorage.getItem("green") === "true"
|
|
||||||
: false;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
{#if green}
|
|
||||||
<link rel="stylesheet" href="/assets/green.css" />
|
|
||||||
{/if}
|
|
||||||
<title>
|
<title>
|
||||||
{page.data.title ? page.data.title + " | pancakes" : "pancakes"}
|
{page.data.title ? page.data.title + " | pancakes" : "pancakes"}
|
||||||
</title>
|
</title>
|
||||||
|
|
Loading…
Add table
Reference in a new issue