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