mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-08 01:10:01 +02:00
Fixed invalid preferences on submission
This commit is contained in:
parent
7da97d10ec
commit
7b4c3e1628
1 changed files with 2 additions and 0 deletions
|
@ -263,6 +263,8 @@ def get_preferences():
|
|||
return {}
|
||||
content = re.sub(r"```json\n*", "", content)
|
||||
content = re.sub(r"\n*```\n*", "", content)
|
||||
if content.strip() == "":
|
||||
return {}
|
||||
|
||||
if content.startswith("{") and content.endswith("}"):
|
||||
print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue