From 692d7a6d227fb9afaa8f7bc021f6765f6015757b Mon Sep 17 00:00:00 2001
From: ivarlovlie <git@ivarlovlie.no>
Date: Mon, 10 Oct 2022 00:43:39 +0800
Subject: refactor: Use default options when setting locale cookie

---
 code/app/src/lib/components/locale-switcher.svelte | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'code/app/src/lib/components/locale-switcher.svelte')

diff --git a/code/app/src/lib/components/locale-switcher.svelte b/code/app/src/lib/components/locale-switcher.svelte
index f880bfb..19624a5 100644
--- a/code/app/src/lib/components/locale-switcher.svelte
+++ b/code/app/src/lib/components/locale-switcher.svelte
@@ -16,10 +16,7 @@
         await loadLocaleAsync(newLocale);
         setLocale(newLocale);
         document.querySelector("html")?.setAttribute("lang", newLocale);
-        Cookies.set(CookieNames.locale, newLocale, {
-            sameSite: "strict",
-            domain: location.hostname,
-        });
+        Cookies.set(CookieNames.locale, newLocale);
         console.log("Switched to: " + newLocale);
     }
 
-- 
cgit v1.3

