Skip to content

Commit 2312939

Browse files
committed
Fix creation of themes.json
1 parent dc6f65e commit 2312939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def create_css(theme, theme_type="standard"):
173173
else:
174174
with open("CNAME", "rt", closefd=True) as cname:
175175
CNAME = cname.readline()
176-
DOMAIN = f"{branch}.{CNAME}" if branch else CNAME
176+
DOMAIN = f"{branch}.{CNAME}" if branch not in ["master","main"] else CNAME
177177
apps = loads(create_json(app_folders=app_folders, themes=themes, community_themes=community_themes, docker_mods=docker_mods))
178178
with open("themes.json", "w") as outfile:
179179
dump(apps, outfile, indent=2, sort_keys=True)

0 commit comments

Comments
 (0)