We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65e854d commit f0cbbe9Copy full SHA for f0cbbe9
src/functions.js
@@ -581,7 +581,7 @@ const functions = (() => {
581
// Simply doing `new Buffer` at this point causes Browserify to pull
582
// in the entire Buffer browser library, which is large and unnecessary.
583
// Using `global.Buffer` defeats this.
584
- return new global.Buffer(str, 'base64').toString('binary');
+ return new global.Buffer.from(str, 'base64').toString('binary'); // eslint-disable-line new-cap
585
};
586
return atob(str);
587
}
0 commit comments