web/cutout: allow opening the page without extra settings

This commit is contained in:
wukko 2025-02-07 16:48:10 +06:00
parent 95d9913e3e
commit 039ccf91be
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -1,9 +1,6 @@
<script lang="ts">
import settings from "$lib/state/settings";
import RemoveBgWorker from "$lib/workers/removebg?worker";
import { onMount } from "svelte";
import { goto } from "$app/navigation";
import { downloadFile } from "$lib/download";
import Skeleton from "$components/misc/Skeleton.svelte";
@ -71,12 +68,6 @@
}),
});
};
onMount(() => {
if (!($settings.advanced.localProcessing && $settings.advanced.debug)) {
goto("/", { replaceState: true });
}
});
</script>
<DropReceiver bind:files bind:draggedOver id="cutout-container">