mirror of
https://github.com/wukko/cobalt.git
synced 2025-04-30 14:34:27 +02:00
web/cutout: allow opening the page without extra settings
This commit is contained in:
parent
95d9913e3e
commit
039ccf91be
@ -1,9 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import settings from "$lib/state/settings";
|
|
||||||
import RemoveBgWorker from "$lib/workers/removebg?worker";
|
import RemoveBgWorker from "$lib/workers/removebg?worker";
|
||||||
|
|
||||||
import { onMount } from "svelte";
|
|
||||||
import { goto } from "$app/navigation";
|
|
||||||
import { downloadFile } from "$lib/download";
|
import { downloadFile } from "$lib/download";
|
||||||
|
|
||||||
import Skeleton from "$components/misc/Skeleton.svelte";
|
import Skeleton from "$components/misc/Skeleton.svelte";
|
||||||
@ -71,12 +68,6 @@
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onMount(() => {
|
|
||||||
if (!($settings.advanced.localProcessing && $settings.advanced.debug)) {
|
|
||||||
goto("/", { replaceState: true });
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<DropReceiver bind:files bind:draggedOver id="cutout-container">
|
<DropReceiver bind:files bind:draggedOver id="cutout-container">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user