Skip to content

Commit

Permalink
fixed cryptofill on edge
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Mar 29, 2018
1 parent fb91fd0 commit cc9b622
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -59,6 +57,7 @@ async function canHasSend() {
);
return true;
} catch (err) {
console.error(err);
return false;
}
}
Expand Down
Loading

0 comments on commit cc9b622

Please sign in to comment.