Prevent Firefox from spamming errors

This commit is contained in:
Neale Pickett 2022-06-26 12:22:57 -06:00
parent 047fd1e335
commit 9f9b7b9014
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)
} }
}, },