Fix chrome document scanning

This commit is contained in:
ZXY101
2023-09-29 12:40:01 +02:00
parent 89ca673b2d
commit 1fcb64b7fd
3 changed files with 24 additions and 11 deletions

View File

@@ -1,12 +1,11 @@
<script lang="ts">
import type { Page } from '$lib/types';
import { onMount } from 'svelte';
import TextBoxes from './TextBoxes.svelte';
export let page: Page;
export let src: File;
$: url = `url(${URL.createObjectURL(src)})`;
$: url = src ? `url(${URL.createObjectURL(src)})` : '';
</script>
<div