summaryrefslogtreecommitdiffstats
path: root/dom/midi/tests/file_midi_permission_gated.html
blob: 8e3ed4d62516e72677983a2de2ac03e68f179f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
<head>
<script>
  window.addEventListener("message", async (evt) => {
    try {
      await navigator.requestMIDIAccess({sysex: evt.data});
      parent.postMessage("succeeded", "*");
    } catch (ex) {
      parent.postMessage("failed", "*");
    }
  });
</script>
<body></body>
</html>