diff --git a/javascript/script.js b/javascript/script.js index 7c540b38..d3d16ffb 100644 --- a/javascript/script.js +++ b/javascript/script.js @@ -164,7 +164,7 @@ function initStylePreviewOverlay() { overlay.style.backgroundImage = `url("${samplesPath.replace( "fooocus_v2", name.toLowerCase().replaceAll(" ", "_") - )}")`; + ).replaceAll("\\", "\\\\")}")`; function onMouseLeave() { overlayVisible = false; overlay.style.display = "none";