Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b584782

Browse files
committedFeb 8, 2024·
Fixed Wrong OS Mode Lightswitch with SSR off documentation
1 parent 06583c8 commit b584782

File tree

1 file changed

+9
-7
lines changed
  • sites/skeleton.dev/src/routes/(inner)/utilities/lightswitches

1 file changed

+9
-7
lines changed
 

‎sites/skeleton.dev/src/routes/(inner)/utilities/lightswitches/+page.svelte

+9-7
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,17 @@ module.exports = {
9595
<!-- No SSR -->
9696
<p>Open <code class="code">/src/routes/+layout.ts</code> and set the <code class="code">ssr</code> value as shown.</p>
9797
<CodeBlock language="ts" code={`export const ssr = false;`} />
98-
<p>In the same file, add the following.</p>
98+
<p>In the <code class="code">+layout.svelte</code> file, add the following.</p>
9999
<CodeBlock
100-
language="ts"
100+
language="html"
101101
code={`
102-
import { onMount } from 'svelte';
103-
import { autoModeWatcher } from '@skeletonlabs/skeleton';\n
104-
onMount(() => {
105-
autoModeWatcher();
106-
})`}
102+
<script>
103+
import { onMount } from 'svelte';
104+
import { autoModeWatcher } from '@skeletonlabs/skeleton';\n
105+
onMount(() => {
106+
autoModeWatcher();
107+
})
108+
</script>`}
107109
/>
108110
{:else}
109111
<!-- Other Frameworks -->

0 commit comments

Comments
 (0)
Please sign in to comment.