Merge f17abfb0513bc2721dd54aa28d5cda15df6b7abc into d51a7a44ad91d2fa7d1330970a15a0d8f365f250

This commit is contained in:
Fijxu 2026-01-27 00:24:13 -06:00 committed by GitHub
commit f99d915574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,8 +94,8 @@ module Invidious::Routes::BeforeAll
end
dark_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_mode
locale = env.params.query["hl"]? || preferences.locale
preferences.dark_mode = dark_mode