Remove unnecessary code

This commit is contained in:
RadoslavL 2023-10-15 00:06:37 +03:00 committed by GitHub
parent 21122db3a7
commit bae8bab3ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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