Skip to content

Commit 354df7b

Browse files
author
Working On It
committed
fix: wrong logourl setting
1 parent dede33a commit 354df7b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web/src/Setting.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2050,9 +2050,11 @@ export function getAlgorithm(themeAlgorithmNames) {
20502050
}
20512051

20522052
export function getLogo(themes) {
2053+
let defaultLogoUrl = Conf.LogoUrl;
2054+
defaultLogoUrl = defaultLogoUrl.replace("https://cdn.casibase.org", Conf.StaticBaseUrl);
20532055
if (themes.includes("dark")) {
2054-
return Conf.LogoUrl.replace(/\.png$/, "_white.png");
2056+
return defaultLogoUrl.replace(/\.png$/, "_white.png");
20552057
} else {
2056-
return Conf.LogoUrl;
2058+
return defaultLogoUrl;
20572059
}
20582060
}

0 commit comments

Comments
 (0)