Merge f17abfb0513bc2721dd54aa28d5cda15df6b7abc into f7a31aa3dee1f37cb90a22303b6d45bec0033a3f

This commit is contained in:
Fijxu 2025-12-22 03:06:43 -03:00 committed by GitHub
commit b1d7ddcea7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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