@@ -17,10 +17,12 @@ import {
1717} from "../../webauthn-json/browser-ponyfill" ;
1818
1919function registeredCredentials ( ) : PublicKeyCredentialDescriptorJSON [ ] {
20- return getRegistrations ( ) . map ( ( reg ) => ( {
21- id : reg . rawId ,
22- type : reg . type ,
23- } ) ) ;
20+ return getRegistrations ( ) . map (
21+ ( reg ) => ( {
22+ id : reg . rawId ,
23+ type : reg . type ,
24+ } ) ,
25+ ) ;
2426}
2527
2628async function register ( ) : Promise < void > {
@@ -68,21 +70,22 @@ async function testSupported() {
6870
6971window . addEventListener ( "load" , ( ) => {
7072 try {
71- document
72- . querySelector ( "#register" ) !
73- . addEventListener ( "click" , withStatus ( "#register .status" , register ) ) ;
74- document
75- . querySelector ( "#authenticate" ) !
76- . addEventListener (
77- "click" ,
78- withStatus ( "#authenticate .status" , authenticate ) ,
79- ) ;
80- document
81- . querySelector ( "#clear" ) !
82- . addEventListener ( "click" , withStatus ( "#clear .status" , clear ) ) ;
83- document
84- . querySelector ( "#supported" ) !
85- . addEventListener ( "click" , testSupported ) ;
73+ document . querySelector ( "#register" ) ! . addEventListener (
74+ "click" ,
75+ withStatus ( "#register .status" , register ) ,
76+ ) ;
77+ document . querySelector ( "#authenticate" ) ! . addEventListener (
78+ "click" ,
79+ withStatus ( "#authenticate .status" , authenticate ) ,
80+ ) ;
81+ document . querySelector ( "#clear" ) ! . addEventListener (
82+ "click" ,
83+ withStatus ( "#clear .status" , clear ) ,
84+ ) ;
85+ document . querySelector ( "#supported" ) ! . addEventListener (
86+ "click" ,
87+ testSupported ,
88+ ) ;
8689 } catch ( e ) {
8790 console . error ( e ) ;
8891 }
0 commit comments