From ad6b6e45769665589a0b0220209cf2289a83e206 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 11:57:32 +0200 Subject: [PATCH] web: replace all occurences of the theme placeholder (cherry-pick #10749) (#10750) 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 Co-authored-by: Chasethechicken --- web/src/elements/utils/images.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/elements/utils/images.ts b/web/src/elements/utils/images.ts index 8b28d405ceb1..573308a43d21 100644 --- a/web/src/elements/utils/images.ts +++ b/web/src/elements/utils/images.ts @@ -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); }