tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

iframe-keyboard-map-allow-helper.html (349B)


      1 <!DOCTYPE html>
      2 <script>
      3 'use strict';
      4 
      5 window.onmessage = message => {
      6  if (message.data === 'Ready') {
      7    let onSuccess = () => { parent.postMessage('Success', '*'); };
      8    let onError = error => {
      9      parent.postMessage('Failure', '*');
     10    };
     11 
     12    navigator.keyboard.getLayoutMap().then(onSuccess, onError).catch(onError);
     13  }
     14 };
     15 
     16 </script>