Skip to content

Commit 928ef95

Browse files
authored
Fix themes.py (#655)
* Fix creation of themes.json
1 parent b3330b9 commit 928ef95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

themes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ 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+
177+
DOMAIN = f"{branch}.{CNAME}" if branch not in ["master","main"] else CNAME
177178
apps = loads(create_json(app_folders=app_folders, themes=themes, community_themes=community_themes, docker_mods=docker_mods))
178179
with open("themes.json", "w") as outfile:
179180
dump(apps, outfile, indent=2, sort_keys=True)

0 commit comments

Comments
 (0)