From 242e39c6fccc554869cf28e3959b6af8717c40c2 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Fri, 20 Sep 2024 09:46:13 +0200 Subject: [PATCH] Remove image buffer transformation from app wrapper --- packages/web-pkg/src/components/AppTemplates/AppWrapper.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/web-pkg/src/components/AppTemplates/AppWrapper.vue b/packages/web-pkg/src/components/AppTemplates/AppWrapper.vue index 7e2035f2664..73d636af05d 100644 --- a/packages/web-pkg/src/components/AppTemplates/AppWrapper.vue +++ b/packages/web-pkg/src/components/AppTemplates/AppWrapper.vue @@ -343,7 +343,7 @@ export default defineComponent({ } const saveFileTask = useTask(function* () { - let newContent = unref(currentContent) + const newContent = unref(currentContent) const headers = props.contentType === 'image' @@ -352,10 +352,6 @@ export default defineComponent({ } : {} - if (props.contentType === 'image') { - newContent = Buffer.from(newContent, 'base64') - } - try { const putFileContentsResponse = yield putFileContents(currentFileContext, { content: newContent,