File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/v2/view-builder/views Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -312,18 +312,19 @@ export default BaseView.extend({
312
312
} ,
313
313
314
314
getCredentialsAndSave ( ) {
315
- // AbortController is not supported in IE11
316
- if ( typeof AbortController !== 'undefined' ) {
317
- this . webauthnAbortController = new AbortController ( ) ;
318
- }
319
-
320
315
const allowCredentials = [ ] ;
321
316
const challengeData = this . options . appState . get ( 'webauthnChallenge' ) ?. challengeData ;
317
+ if ( ! challengeData ) return ;
322
318
const options = _ . extend ( { } , challengeData , {
323
319
allowCredentials,
324
320
challenge : CryptoUtil . strToBin ( challengeData . challenge ) ,
325
321
} ) ;
326
322
323
+ // AbortController is not supported in IE11
324
+ if ( typeof AbortController !== 'undefined' ) {
325
+ this . webauthnAbortController = new AbortController ( ) ;
326
+ }
327
+
327
328
// navigator.credentials() is not supported in IE11
328
329
// eslint-disable-next-line compat/compat
329
330
navigator . credentials . get ( {
You can’t perform that action at this time.
0 commit comments