Using dev from environment
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-12-12 17:12:27 +01:00
parent 9012bb96d6
commit aeaec1c3d2

View file

@ -3,11 +3,12 @@
import Toast from '$lib/components/Toast.svelte';
import { onMount } from 'svelte';
import { onNavigate } from '$app/navigation';
import { dev } from '$app/environment';
let node: HTMLElement;
onMount(() => {
if(import.meta.env.DEV) return;
if(dev) return;
if ('serviceWorker' in navigator) {
addEventListener('load', function () {