aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/+layout.svelte4
-rw-r--r--routes/+page.svelte6
2 files changed, 5 insertions, 5 deletions
diff --git a/routes/+layout.svelte b/routes/+layout.svelte
index 0cf4c43..0d84d4d 100644
--- a/routes/+layout.svelte
+++ b/routes/+layout.svelte
@@ -1,12 +1,12 @@
<script lang="ts">
- import { base } from '$app/paths'
+ import { assets } from '$app/paths'
import AudioPlayer from '@hollowdark/lib/audio/AudioPlayer.svelte'
import { highContrast, reduceMotion } from '@hollowdark/lib/accessibility/state'
import { textSize, type TextSize } from '@hollowdark/lib/reading/state'
let { children } = $props()
- const titleTrackSrc = `${base}/audio/title/piano-relaxing.mp3`
+ const titleTrackSrc = `${assets}/audio/title/piano-relaxing.mp3`
const ALL_TEXT_SIZE_CLASSES: readonly string[] = [
'text-size-small',
diff --git a/routes/+page.svelte b/routes/+page.svelte
index babf994..debc068 100644
--- a/routes/+page.svelte
+++ b/routes/+page.svelte
@@ -1,10 +1,10 @@
<script lang="ts">
import { onMount } from 'svelte'
import { goto } from '$app/navigation'
- import { resolve } from '$app/paths'
+ import { assets, resolve } from '$app/paths'
import BeginScreen from '@hollowdark/lib/screens/BeginScreen.svelte'
import InitialLoadScreen from '@hollowdark/lib/screens/InitialLoadScreen.svelte'
- import { runStubInitialLoad } from '@hollowdark/loading/stub'
+ import { runInitialLoad } from '@hollowdark/loading/content'
import { detectBeginState, type BeginState } from '@hollowdark/loading/session'
import {
hasCompletedInitialLoad,
@@ -18,7 +18,7 @@
onMount(async () => {
if (!hasCompletedInitialLoad()) {
- await runStubInitialLoad()
+ await runInitialLoad(assets)
markInitialLoadComplete()
}
beginState = await detectBeginState()