We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1aa27e commit 24d26dfCopy full SHA for 24d26df
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@mpiorowski/svelte-init",
3
"description": "Low-overhead Svelte UI library",
4
- "version": "2.0.6",
+ "version": "2.0.7",
5
"keywords": [
6
"svelte",
7
"sveltekit",
src/lib/components/drawer.svelte
@@ -4,7 +4,7 @@
export let onClose: () => void;
export let isOpen: boolean;
- $: document.body.classList.toggle('no-scroll', isOpen);
+ $: document && document.body.classList.toggle('no-scroll', isOpen);
8
</script>
9
10
{#if isOpen}
0 commit comments