mirror of
https://github.com/scratchfoundation/scratch-auth.git
synced 2025-08-28 21:28:46 -04:00
Use 'new' when creating Buffer
This commit is contained in:
parent
edafabb482
commit
0bcfeca2a0
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ module.exports = {
|
|||
if (typeof s !== 'string') return;
|
||||
|
||||
// Convert from binary to Base64
|
||||
var b64String = Buffer(s, 'binary').toString('base64');
|
||||
var b64String = new Buffer(s, 'binary').toString('base64');
|
||||
|
||||
// Replace special characters with URL-safe alternates
|
||||
return b64String.replace(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue