mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Remove unnecessary code
This commit is contained in:
parent
21122db3a7
commit
bae8bab3ff
1 changed files with 0 additions and 3 deletions
|
@ -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 a new issue