File tree Expand file tree Collapse file tree
src/v2/view-builder/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,18 +309,19 @@ export default BaseView.extend({
309309 } ,
310310
311311 getCredentialsAndSave ( ) {
312- // AbortController is not supported in IE11
313- if ( typeof AbortController !== 'undefined' ) {
314- this . webauthnAbortController = new AbortController ( ) ;
315- }
316-
317312 const allowCredentials = [ ] ;
318313 const challengeData = this . options . appState . get ( 'webauthnChallenge' ) ?. challengeData ;
314+ if ( ! challengeData ) return ;
319315 const options = _ . extend ( { } , challengeData , {
320316 allowCredentials,
321317 challenge : CryptoUtil . strToBin ( challengeData . challenge ) ,
322318 } ) ;
323319
320+ // AbortController is not supported in IE11
321+ if ( typeof AbortController !== 'undefined' ) {
322+ this . webauthnAbortController = new AbortController ( ) ;
323+ }
324+
324325 // navigator.credentials() is not supported in IE11
325326 // eslint-disable-next-line compat/compat
326327 navigator . credentials . get ( {
You can’t perform that action at this time.
0 commit comments