Skip to content

Commit

Permalink
Remove image buffer transformation from app wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Sep 20, 2024
1 parent 338b7e8 commit 242e39c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/web-pkg/src/components/AppTemplates/AppWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export default defineComponent({
}
const saveFileTask = useTask(function* () {
let newContent = unref(currentContent)
const newContent = unref(currentContent)
const headers =
props.contentType === 'image'
Expand All @@ -352,10 +352,6 @@ export default defineComponent({
}
: {}
if (props.contentType === 'image') {
newContent = Buffer.from(newContent, 'base64')
}
try {
const putFileContentsResponse = yield putFileContents(currentFileContext, {
content: newContent,
Expand Down

0 comments on commit 242e39c

Please sign in to comment.