mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-15 15:26:34 +01:00
web/cutout: allow opening the page without extra settings
This commit is contained in:
parent
95d9913e3e
commit
039ccf91be
1 changed files with 0 additions and 9 deletions
|
@ -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…
Reference in a new issue