fix binaryStringToBuffer
=== to !==
This commit is contained in:
parent
ed56a62799
commit
a643e57ef1
2
index.js
2
index.js
@ -63,7 +63,7 @@ function bufferToBase64(arr) {
|
|||||||
function binaryStringToBuffer(binstr) {
|
function binaryStringToBuffer(binstr) {
|
||||||
var buf;
|
var buf;
|
||||||
|
|
||||||
if ('undefined' === typeof Uint8Array) {
|
if ('undefined' !== typeof Uint8Array) {
|
||||||
buf = new Uint8Array(binstr.length);
|
buf = new Uint8Array(binstr.length);
|
||||||
} else {
|
} else {
|
||||||
buf = [];
|
buf = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user