From 4b09fb892e1502539ed6d68e6f60515230857868 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 28 Feb 2024 07:46:29 +0000 Subject: [PATCH] switch out image url for blob strings --- src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx b/src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx index 14a3abd74..6b249cd12 100644 --- a/src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx +++ b/src/components/Editor/Runners/HtmlRunner/HtmlRunner.jsx @@ -108,9 +108,10 @@ function HtmlRunner() { var updatedProjectFile = { ...projectFile }; if (projectFile.extension === "css") { projectImages.forEach((image) => { + const blobString = `data:${image.content_type};base64,${image.blob_data}`; updatedProjectFile.content = updatedProjectFile.content.replaceAll( image.filename, - image.url, + blobString, ); }); }