Don't crash when the theme does not have any options

Hotfix for prod, pushing straight to master
This commit is contained in:
redfast00 2020-12-04 05:17:34 +01:00
parent 787669823c
commit f5a8303362
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

View file

@ -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"