Skip to content
Snippets Groups Projects
Commit aef5dc42 authored by Ewen Le Bihan's avatar Ewen Le Bihan
Browse files

feat(debugging): sync debug mode state to sessionStorage instead of localStorage

parent 3bac5b7f
Branches
Tags v1.23.9
No related merge requests found
import { browser } from '$app/environment';
import { syncToLocalStorage } from 'svelte-store2storage';
import { syncToSessionStorage } from 'svelte-store2storage';
import { writable } from 'svelte/store';
export const debugging = writable(false);
if (browser) syncToLocalStorage(debugging, 'debugging');
if (browser) syncToSessionStorage(debugging, 'debugging');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment