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 Oct 31, 2024
1 parent e1fe800 commit 37be09a
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 @@ -394,7 +394,7 @@ export default defineComponent({
}
const saveFileTask = useTask(function* () {
let newContent = unref(currentContent)
const newContent = unref(currentContent)
const headers =
props.contentType === 'image'
Expand All @@ -403,10 +403,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 37be09a

Please sign in to comment.