electron/spec/fixtures/pages/permissions/midi.html

5 lines
154 B
HTML

<script>
navigator.requestMIDIAccess({sysex: false}).then(() => {}, (err) => {
require('electron').ipcRenderer.send('message', err.name);
});
</script>