aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/scan/+page.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/scan/+page.svelte')
-rw-r--r--src/routes/(app)/scan/+page.svelte8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(app)/scan/+page.svelte b/src/routes/(app)/scan/+page.svelte
index 1acc9b13..edff522e 100644
--- a/src/routes/(app)/scan/+page.svelte
+++ b/src/routes/(app)/scan/+page.svelte
@@ -6,7 +6,7 @@
import { back } from "$lib/utils";
import { goto } from "$app/navigation";
- let scanner, vid, resizing;
+ let scanner, vid = $state(), resizing;
let resize = () => {
if (resizing) clearTimeout(resizing);
@@ -31,19 +31,19 @@
onDestroy(() => scanner?.stop());
</script>
-<svelte:window on:resize={resize} />
+<svelte:window onresize={resize} />
<div class="flex w-full mb-4 p-4">
<div class="mx-auto rounded-3xl">
<video
bind:this={vid}
class="border-4 rounded-3xl border-black max-h-[calc(100vh*0.7)]"
- />
+></video>
</div>
</div>
<div class="flex justify-center">
- <button class="btn !w-auto" on:click={back}>Cancel</button>
+ <button class="btn !w-auto" onclick={back}>Cancel</button>
</div>
<style>