get_assertion_dead_object.html (658B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset=utf-8> 5 </head> 6 <body> 7 <script type="text/javascript"> 8 window.addEventListener('load', function() { 9 let o = []; 10 o[0] = window.navigator; 11 document.writeln(''); 12 // Since the USB token is enabled by default, this will pop up a notification that the 13 // user can insert/interact with it. Since this is just a test, this won't happen. The 14 // request will eventually time out. 15 // Unfortunately the minimum timeout is 15 seconds. 16 o[0].credentials.get({ publicKey: { challenge: new Uint8Array(128), timeout: 15000 } }); 17 o.forEach((n, i) => o[i] = null); 18 }); 19 </script> 20 </body> 21 </html>