Skip to content

Commit

Permalink
fix: remove utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolipe-a committed Jan 7, 2024
1 parent 0c87cbd commit 52b8403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browsershot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export class Browsershot {
async screenshot() {
const output = await this.base64Screenshot()

return Buffer.from(output, 'base64').toString('utf-8')
return Buffer.from(output, 'base64')
}

async base64pdf() {
Expand All @@ -548,7 +548,7 @@ export class Browsershot {
async pdf() {
const output = await this.base64pdf()

return Buffer.from(output, 'base64').toString('utf-8')
return Buffer.from(output, 'base64')
}

async savePdf(targetPath: string) {
Expand Down

0 comments on commit 52b8403

Please sign in to comment.