add global try-catch
This commit is contained in:
parent
27e755cbc2
commit
824fd815af
1 changed files with 354 additions and 349 deletions
|
|
@ -2,6 +2,7 @@ import * as midi from 'easymidi';
|
|||
import osc from 'osc';
|
||||
|
||||
|
||||
try {
|
||||
console.log('inputs', midi.getInputs())
|
||||
console.log('outputs', midi.getOutputs())
|
||||
|
||||
|
|
@ -397,3 +398,7 @@ buttonToggle(mutes[4], PAGE_PC, '/ch/03/mix/on')
|
|||
buttonToggle(mutes[5], PAGE_PC, '/ch/05/mix/on')
|
||||
buttonToggle(mutes[6], PAGE_PC, '/ch/07/mix/on')
|
||||
buttonToggle(mutes[7], PAGE_PC, '/ch/09/mix/on')
|
||||
|
||||
} catch (e) {
|
||||
console.error('Uncaught error', e)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue