blob: 66b153cffb5edc05cc30c1d111b8db668f1e4dbe [file] [log] [blame]
<script>
let myID;
navigator.mediaDevices.ondevicechange = (event) => {
parent.postMessage(myID, '*');
result.innerHTML = `${myID} got 'devicechange' event`;
};
window.addEventListener("message", (event) => { myID = event.data; });
</script>
<div id='result'></div>