Skip to content

Commit c25a223

Browse files
committed
update
1 parent b541244 commit c25a223

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/screenshotbase/actions/take-screenshot/take-screenshot.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ export default {
8181
},
8282
});
8383

84-
const rawcontent = response.toString("base64");
85-
const buffer = Buffer.from(rawcontent, "base64");
8684
const downloadedFilepath = `/tmp/${this.filename}`;
87-
fs.writeFileSync(downloadedFilepath, buffer);
85+
fs.writeFileSync(downloadedFilepath, response);
8886

8987
const filedata = [
9088
this.filename,

0 commit comments

Comments
 (0)