fixed cryptofill on edge
This commit is contained in:
parent
fb91fd03cc
commit
cc9b622bde
@ -9,9 +9,7 @@ function arrayToB64(array) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function b64ToArray(str) {
|
function b64ToArray(str) {
|
||||||
return b64.toByteArray(
|
return b64.toByteArray(str + '==='.slice((str.length + 3) % 4));
|
||||||
str + '==='.slice((str.length + 3) % 4)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadShim(polyfill) {
|
function loadShim(polyfill) {
|
||||||
@ -59,6 +57,7 @@ async function canHasSend() {
|
|||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user