From 66f28e0ffa784559acc4a427eeb100aa28b623b8 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 5 Dec 2023 23:56:24 -0800
Subject: feat(settings): remove force theme

---
 src/routes/+layout.svelte | 10 ----------
 1 file changed, 10 deletions(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 95c7c678..ae91ba64 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -10,16 +10,6 @@
 	let currentUserIdentity = { name: '...', id: -1 };
 
 	onMount(async () => {
-		settings.subscribe((value) => {
-			if (value.forceLightTheme === true) {
-				document.documentElement.classList.add('light-theme');
-				document.documentElement.classList.remove('dark-theme');
-			} else {
-				document.documentElement.classList.remove('light-theme');
-				document.documentElement.classList.add('dark-theme');
-			}
-		});
-
 		if (data.user !== undefined) {
 			if ($userIdentity === '') {
 				userIdentity.set(JSON.stringify(await getUserIdentity(data.user)));
-- 
cgit v1.2.3

