mirror of
https://git.coolaj86.com/coolaj86/browser-authenticator.js
synced 2025-03-14 12:20:46 +00:00
mobile safari fix
This commit is contained in:
parent
ae560e7803
commit
e39c6956f2
5
bower_components/unibabel/unibabel.base32.js
vendored
5
bower_components/unibabel/unibabel.base32.js
vendored
@ -131,7 +131,12 @@ exports.base32ToBuffer = function(encoded) {
|
|||||||
throw new Error('Invalid input - it is not base32 encoded string');
|
throw new Error('Invalid input - it is not base32 encoded string');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (decoded.slice) {
|
||||||
return decoded.slice(0, plainPos);
|
return decoded.slice(0, plainPos);
|
||||||
|
} else {
|
||||||
|
// Mobile Safari's Uint8Array doesn't have slice
|
||||||
|
return Array.prototype.slice.apply(decoded, 0, plainPos);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}(window.Unibabel || window));
|
}(window.Unibabel || window));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user