mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 14:10:53 +03:00
Merge pull request #781 from timvisee/master
Don't translate URL-safe chars, b64 is doing it for us
This commit is contained in:
@@ -9,10 +9,9 @@ function arrayToB64(array) {
|
||||
}
|
||||
|
||||
function b64ToArray(str) {
|
||||
str = (str + '==='.slice((str.length + 3) % 4))
|
||||
.replace(/-/g, '+')
|
||||
.replace(/_/g, '/');
|
||||
return b64.toByteArray(str);
|
||||
return b64.toByteArray(
|
||||
str + '==='.slice((str.length + 3) % 4)
|
||||
);
|
||||
}
|
||||
|
||||
function loadShim(polyfill) {
|
||||
|
||||
Reference in New Issue
Block a user