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 @@ -309,18 +309,19 @@ export default BaseView.extend({
309
309
} ,
310
310
311
311
getCredentialsAndSave ( ) {
312
- // AbortController is not supported in IE11
313
- if ( typeof AbortController !== 'undefined' ) {
314
- this . webauthnAbortController = new AbortController ( ) ;
315
- }
316
-
317
312
const allowCredentials = [ ] ;
318
313
const challengeData = this . options . appState . get ( 'webauthnChallenge' ) ?. challengeData ;
314
+ if ( ! challengeData ) return ;
319
315
const options = _ . extend ( { } , challengeData , {
320
316
allowCredentials,
321
317
challenge : CryptoUtil . strToBin ( challengeData . challenge ) ,
322
318
} ) ;
323
319
320
+ // AbortController is not supported in IE11
321
+ if ( typeof AbortController !== 'undefined' ) {
322
+ this . webauthnAbortController = new AbortController ( ) ;
323
+ }
324
+
324
325
// navigator.credentials() is not supported in IE11
325
326
// eslint-disable-next-line compat/compat
326
327
navigator . credentials . get ( {
You can’t perform that action at this time.
0 commit comments