Invidious is an alternative front-end to YouTube
chore: Do not convert thin_mode preference to string to compare it (#5568)
Fijxub521e3be6c0d
diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.crindex 63b935ec..06746a12 100644--- a/src/invidious/routes/before_all.cr+++ b/src/invidious/routes/before_all.cr@@ -94,8 +94,8 @@ module Invidious::Routes::BeforeAllenddark_mode = convert_theme(env.params.query["dark_mode"]?) || preferences.dark_mode.to_s- thin_mode = env.params.query["thin_mode"]? || preferences.thin_mode.to_s- thin_mode = thin_mode == "true"+ thin_mode = env.params.query["thin_mode"]?+ thin_mode = (thin_mode == "true") || preferences.thin_modelocale = env.params.query["hl"]? || preferences.localepreferences.dark_mode = dark_mode