Skip to content

Commit 80ac603

Browse files
authored
fix: encoding in Node usage (#2)
1 parent 0272b15 commit 80ac603

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (!globalThis.btoa) {
8888

8989
if (!globalThis.atob) {
9090
globalThis.atob = (string) =>
91-
Buffer.from(string, "base64").toString("binary");
91+
Buffer.from(string, "base64").toString("utf-8");
9292
}
9393

9494
/**

0 commit comments

Comments
 (0)