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