Don't crash when the theme does not have any options
Hotfix for prod, pushing straight to master
This commit is contained in:
parent
787669823c
commit
f5a8303362
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ def current_theme_js():
|
|||
|
||||
response = make_response(rf'''
|
||||
var currentTheme = {json.dumps(cur_theme['file'])};
|
||||
var currentThemeOptions = {json.dumps(cur_theme['options'])};
|
||||
var currentThemeOptions = {json.dumps(cur_theme.get('options', []))};
|
||||
''')
|
||||
response.headers["Content-Type"] = "text/javascript"
|
||||
|
||||
|
|
Loading…
Reference in a new issue