fix binaryStringToBuffer
=== to !==
Este commit está contenido en:
padre
ed56a62799
commit
a643e57ef1
2
index.js
2
index.js
@ -63,7 +63,7 @@ function bufferToBase64(arr) {
|
||||
function binaryStringToBuffer(binstr) {
|
||||
var buf;
|
||||
|
||||
if ('undefined' === typeof Uint8Array) {
|
||||
if ('undefined' !== typeof Uint8Array) {
|
||||
buf = new Uint8Array(binstr.length);
|
||||
} else {
|
||||
buf = [];
|
||||
|
||||
Cargando…
x
Referencia en una nueva incidencia
Block a user