adds “save all state” utility

This commit is contained in:
Ollie Taylor
2023-02-24 20:04:01 +00:00
parent b079510b47
commit cf2281dfdb
5 changed files with 25 additions and 5 deletions
+2 -4
View File
@@ -13,6 +13,7 @@
} from '$lib/context/audio-internals';
import { user_preferences } from '$lib/context/user-preferences';
import type { PlayerElement } from '$lib/types/types';
import { load_podcast_state } from '$lib/utility/use-state';
import { onMount } from 'svelte';
// readonly values
@@ -40,10 +41,7 @@
$: muted = $audio_muted;
$: current_time = $audio_start_at;
onMount(() => {
episode_progress.load_all();
user_preferences.load();
});
onMount(load_podcast_state);
</script>
<audio