From 52b84032765dc581458264bf2d5ecc84820c297a Mon Sep 17 00:00:00 2001 From: Bruno Date: Sun, 7 Jan 2024 11:09:42 -0300 Subject: [PATCH] fix: remove utf-8 --- src/browsershot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browsershot.ts b/src/browsershot.ts index aed1828..b4976a5 100644 --- a/src/browsershot.ts +++ b/src/browsershot.ts @@ -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() { @@ -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) {