Fixed css function to deal with default [customTheme] cookie
This commit is contained in:
parent
4ad70992f5
commit
7ac0d6291e
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ def css():
|
||||||
|
|
||||||
themes_dict = get_css_dict(css_path)
|
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)
|
f = open(path)
|
||||||
response = make_response(f.read())
|
response = make_response(f.read())
|
||||||
|
|
Loading…
Reference in a new issue