Skip to content

Commit

Permalink
fix: prerendering and small errors in +page.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Feb 15, 2024
1 parent deae1ce commit fdb92eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import SyntaxHighlight from './SyntaxHighlight.svelte';
async function openFooModal(data?: unknown, options?: ModalOptions) {
let result = await openModal(FooComponent, data ?? null, options);
let result = await openModal(FooComponent, { data }, options);
console.log(`Modal result: ${JSON.stringify(result)}`);
}
</script>
Expand Down Expand Up @@ -83,7 +83,7 @@
let result = await openModal(FooComponent);
console.log(result); // Whatever the modal returned when it was closed
}
</script>
<\/script>
<button type="button" on:click={() => openFooModal()}>
A simple modal with a button to close it
Expand Down
4 changes: 1 addition & 3 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const config = {

kit: {
appDir: 'app',
adapter: adapter({
fallback: 'index.html',
}),
adapter: adapter(),
},
};

Expand Down

0 comments on commit fdb92eb

Please sign in to comment.