web: replace all occurences of the theme placeholder (#10749)

Replace all occurences of the theme placeholder

This allows the placeholder to occur multiple times in the theme url.

Signed-off-by: Chasethechicken <neuringe1234@gmail.com>
This commit is contained in:
Chasethechicken
2024-08-04 15:47:45 +02:00
committed by GitHub
parent b9bf01f693
commit 2a2f1c3d3a

View File

@ -9,5 +9,5 @@ export function themeImage(rawPath: string) {
? UiThemeEnum.Light
: UiThemeEnum.Dark;
}
return rawPath.replace("%(theme)s", enabledTheme);
return rawPath.replaceAll("%(theme)s", enabledTheme);
}