We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c6e007 commit 4d0b557Copy full SHA for 4d0b557
lib/utils.ts
@@ -9,9 +9,5 @@ export const toBase64 = (input: string): string => {
9
};
10
11
export const fromBase64 = (input: string): string => {
12
- if (typeof atob !== 'undefined') {
13
- return atob(input);
14
- } else {
15
- return Buffer.from(input, 'base64').toString('binary');
16
- }
+ return Buffer.from(input, 'base64').toString('binary');
17
0 commit comments