fixed cryptofill on edge

This commit is contained in:
Danny Coates 2018-03-28 22:03:46 -07:00
parent fb91fd03cc
commit cc9b622bde
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
2 changed files with 6 additions and 5 deletions

View File

@ -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