We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9928f0 commit b2592fcCopy full SHA for b2592fc
frontend/src/ts/controllers/theme-controller.ts
@@ -354,7 +354,9 @@ function applyCustomBackground(): void {
354
$("#words").addClass("noErrorBorder");
355
$("#resultWordsHistory").addClass("noErrorBorder");
356
$(".customBackground").html(
357
- `<img src="${Config.customBackground}" alt="" onerror="javascript:window.dispatchEvent(new Event('customBackgroundFailed'))" />`
+ `<img src="${encodeURI(
358
+ Config.customBackground
359
+ )}" alt="" onerror="javascript:window.dispatchEvent(new Event('customBackgroundFailed'))" />`
360
);
361
BackgroundFilter.apply();
362
applyCustomBackgroundSize();
0 commit comments