mirror of https://github.com/nealey/vail.git
Prevent Firefox from spamming errors
This commit is contained in:
parent
047fd1e335
commit
9f9b7b9014
|
@ -142,7 +142,7 @@ export class MIDI extends Input{
|
||||||
// Turn off keyboard mode
|
// Turn off keyboard mode
|
||||||
output.send([0xB0, 0x00, 0x00])
|
output.send([0xB0, 0x00, 0x00])
|
||||||
|
|
||||||
// MIDI only supports 7-bit values, so we have to divide ditduration by two
|
// MIDI only supports 7-bit values, so we have to divide dit duration by two
|
||||||
output.send([0xB0, 0x01, this.ditDuration/2])
|
output.send([0xB0, 0x01, this.ditDuration/2])
|
||||||
|
|
||||||
// Send keyer mode
|
// Send keyer mode
|
||||||
|
|
|
@ -357,7 +357,7 @@ class MIDIBuzzer extends Buzzer {
|
||||||
let ms = when?when - Date.now():0
|
let ms = when?when - Date.now():0
|
||||||
setTimeout(
|
setTimeout(
|
||||||
() => {
|
() => {
|
||||||
for (let output of this.outputs) {
|
for (let output of (this.outputs || [])) {
|
||||||
output.send(message)
|
output.send(message)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue