mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-25 06:57:22 +00:00
Remove unnecessary code
This commit is contained in:
parent
577058617f
commit
129a899df6
@ -799,9 +799,3 @@ h1, h2, h3, h4, h5, p,
|
||||
#download_widget {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 404 TV Box */
|
||||
.error-page {
|
||||
width: 50%;
|
||||
height: auto;
|
||||
}
|
@ -74,8 +74,6 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, exce
|
||||
# Don't show the usual "next steps" widget. The same options are
|
||||
# proposed above the error message, just worded differently.
|
||||
next_steps = ""
|
||||
unfound_tv_box_dark_theme = File.read("assets/404_tv_box_dark_theme.svg")
|
||||
unfound_tv_box_light_theme = File.read("assets/404_tv_box_light_theme.svg")
|
||||
|
||||
return templated "error"
|
||||
end
|
||||
@ -87,8 +85,6 @@ def error_template_helper(env : HTTP::Server::Context, status_code : Int32, mess
|
||||
locale = env.get("preferences").as(Preferences).locale
|
||||
|
||||
error_message = translate(locale, message)
|
||||
unfound_tv_box_dark_theme = File.read("assets/404_tv_box_dark_theme.svg")
|
||||
unfound_tv_box_light_theme = File.read("assets/404_tv_box_light_theme.svg")
|
||||
next_steps = error_redirect_helper(env)
|
||||
|
||||
return templated "error"
|
||||
|
Loading…
Reference in New Issue
Block a user