diff --git a/src/lib/DashboardModal.svelte b/src/lib/DashboardModal.svelte
index c0d2edd..37229b2 100644
--- a/src/lib/DashboardModal.svelte
+++ b/src/lib/DashboardModal.svelte
@@ -1,5 +1,5 @@
- import { onMount } from 'svelte';
- import * as CookieConsent from 'vanilla-cookieconsent';
- import config from '$lib/cookieconsent-config';
-
- onMount(() => {
- CookieConsent.run(config);
- });
-
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 3c0051d..976a26f 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -31,8 +31,8 @@
}
const drawerStore = getDrawerStore();
-
- import CookieConsentComponent from '$lib/cookieconsent.svelte';
+ import { load_cc } from '$lib/cc';
+ load_cc();
const popupRechtliches: PopupSettings = {
// Represents the type of event that opens/closed the popup
@@ -66,7 +66,6 @@
-
{
- goto('/');
+ const response = await fetch('/');
+
+ if (response.redirected) {
+ window.location.href = response.url;
+ } else {
+ goto('/');
+ }
}}
class="h-6 btn btn-sm variant-ghost-secondary text-xs"
>