From 600b7f01da01548e18c55e3396f8a5b8b9949b5b Mon Sep 17 00:00:00 2001 From: pythongosssss <125205205+pythongosssss@users.noreply.github.com> Date: Mon, 13 Mar 2023 13:46:46 +0000 Subject: [PATCH] Update notes to include change to app.js change --- preview-image/notes.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/preview-image/notes.txt b/preview-image/notes.txt index 7151c63..1fb8152 100644 --- a/preview-image/notes.txt +++ b/preview-image/notes.txt @@ -1,2 +1,12 @@ This will store the base64 encoded version of every input image in memory until it is removed from history -May need some kind of limit on this... \ No newline at end of file +May need some kind of limit on this... + +Requires an update to app.js to allow rendering of b64 images + +around line 113ish (in function addDrawBackgroundHandler) replace: + +img.src = "/view/" + src; + +with + +img.src = src.startsWith("data:image") ? src : "/view/" + src;