Skip to content

Commit e145838

Browse files
committed
fix: win variable declaration
1 parent e46d8a3 commit e145838

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib/headroom/index.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
let lastY = 0
2020
let atTop = true
2121
let atBottom = false
22-
let win
23-
let style = `--duration:${duration};--easing:${easing};`
22+
let style = `--duration:${duration}; --easing:${easing};`
2423
2524
const dispatch = createEventDispatcher()
2625
26+
/**
27+
* @type {Window & typeof globalThis}
28+
*/
29+
let win
2730
onMount(() => {
2831
win = window
2932
})

0 commit comments

Comments
 (0)