From bae8bab3ff518a2f9d416b1a9583b3ce9e458ca3 Mon Sep 17 00:00:00 2001 From: RadoslavL <63926126+RadoslavL@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:06:37 +0300 Subject: [PATCH] Remove unnecessary code --- src/invidious/routes/before_all.cr | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index be80659f..396840a4 100644 --- a/src/invidious/routes/before_all.cr +++ b/src/invidious/routes/before_all.cr @@ -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