From 7ac0d6291ed7ed3e8ea04c5f043d5a8ec1440eeb Mon Sep 17 00:00:00 2001 From: Pieter-Jan Cassiman Date: Tue, 17 Dec 2019 22:25:59 +0100 Subject: [PATCH] Fixed css function to deal with default [customTheme] cookie --- app/views/general.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/general.py b/app/views/general.py index 51249e2..569d448 100644 --- a/app/views/general.py +++ b/app/views/general.py @@ -94,7 +94,11 @@ def css(): themes_dict = get_css_dict(css_path) - path = themes_dict[cookie_theme] + # TODO: Fix to work with default cookie value [customTheme] + if cookie_theme == "customTheme": + path = css_path+"ligtmode.css" + else: + path = themes_dict[cookie_theme] f = open(path) response = make_response(f.read())