Fixed css function to deal with default [customTheme] cookie

This commit is contained in:
Pieter-Jan Cassiman 2019-12-17 22:25:59 +01:00
parent 4ad70992f5
commit 7ac0d6291e

View file

@ -94,6 +94,10 @@ def css():
themes_dict = get_css_dict(css_path)
# 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)