Skip to content

Commit

Permalink
fix: update svelte demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Oct 15, 2023
1 parent 52493db commit ff3db4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions demos/svelte-app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
}
}
const editor = Editor.create(placeholder, {
width: IMAGE_WIDTH,
height: IMAGE_HEIGHT,
});
const editor = Editor.createBlank(placeholder, IMAGE_WIDTH, IMAGE_HEIGHT, {});
editor.onChanged.subscribe(scheduleRender);
scheduleRender();
});
Expand Down

0 comments on commit ff3db4a

Please sign in to comment.