File tree 1 file changed +9
-7
lines changed
sites/skeleton.dev/src/routes/(inner)/utilities/lightswitches
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,17 @@ module.exports = {
95
95
<!-- No SSR -->
96
96
<p >Open <code class =" code" >/src/routes/+layout.ts</code > and set the <code class =" code" >ssr</code > value as shown.</p >
97
97
<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 >
99
99
<CodeBlock
100
- language =" ts "
100
+ language =" html "
101
101
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> ` }
107
109
/>
108
110
{:else }
109
111
<!-- Other Frameworks -->
You can’t perform that action at this time.
0 commit comments