mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Fix using Buffer on window scope (#6324)
* Update 2fa.vue * Import 'core-js/es/typed-array/from' * Bye polyfill
This commit is contained in:
parent
6dbf1dfa56
commit
469c91cf55
@ -208,11 +208,11 @@ export default Vue.extend({
|
||||
challengeId: registration.challengeId,
|
||||
stage: 0,
|
||||
publicKeyOptions: {
|
||||
challenge: Buffer.from(
|
||||
registration.challenge
|
||||
.replace(/\-/g, "+")
|
||||
.replace(/_/g, "/"),
|
||||
'base64'
|
||||
challenge: Uint8Array.from(
|
||||
atob(registration.challenge
|
||||
.replace(/\-/g, '+')
|
||||
.replace(/_/g, '/')),
|
||||
x => x.charCodeAt(0),
|
||||
),
|
||||
rp: {
|
||||
id: hostname,
|
||||
|
Loading…
Reference in New Issue
Block a user