mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-08 13:42:27 +05:30
Remove unnecessary code
This commit is contained in:
parent
21122db3a7
commit
bae8bab3ff
@ -104,13 +104,10 @@ module Invidious::Routes::BeforeAll
|
||||
thin_mode = env.params.query["thin_mode"]? || preferences.thin_mode.to_s
|
||||
thin_mode = thin_mode == "true"
|
||||
locale = env.params.query["hl"]? || preferences.locale
|
||||
previous_page_button = env.params.query["previous_page_button"]? || preferences.previous_page_button.to_s
|
||||
previous_page_button = previous_page_button == "true"
|
||||
|
||||
preferences.dark_mode = dark_mode
|
||||
preferences.thin_mode = thin_mode
|
||||
preferences.locale = locale
|
||||
preferences.previous_page_button = previous_page_button
|
||||
env.set "preferences", preferences
|
||||
|
||||
current_page = env.request.path
|
||||
|
Loading…
Reference in New Issue
Block a user