Skip to content

Commit

Permalink
cosmetic debug message fixes in WebMidiAccess (it is not only for ktm…
Browse files Browse the repository at this point in the history
…idi-ci-tool)
  • Loading branch information
atsushieno committed Aug 11, 2024
1 parent 498a806 commit 013b743
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import org.khronos.webgl.get

fun processRequestMidiAccess(): Unit = js("""{
navigator.permissions.query({ name: "midi" }).then((result) => {
console.log("ktmidi-ci-tool: requesting permission for Web MIDI Access: " + result.state);
console.log("ktmidi: requesting permission for Web MIDI Access: " + result.state);
if (result.state == "prompt" || result.state =="granted") {
navigator.requestMIDIAccess({"sysex": true, "software": true})
.then((access) => {
console.log("ktmidi-ci-tool: Web MIDI Access is ready for ktmidi-ci-tool");
console.log("ktmidi: Web MIDI Access is ready for ktmidi-ci-tool");
document["ktmidi_wasmJs_midiAccess"] = access;
});
}
Expand Down

0 comments on commit 013b743

Please sign in to comment.