bugfix: osc gotoid

- typo in loadEvent call
- force string on osc parameter call
This commit is contained in:
cv
2021-05-25 22:14:40 +02:00
parent b252aa19b9
commit 8f754587fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -472,7 +472,7 @@ class EventTimer extends Timer {
if (eventIndex === -1) return; if (eventIndex === -1) return;
this.pause(); this.pause();
this.loadEvent(eventIndex, true, true); this.loadEvent(eventIndex, 'load', true);
} }
// Loads a given event // Loads a given event
+1 -1
View File
@@ -71,7 +71,7 @@ const initiateOSC = (config) => {
case 'gotoid': case 'gotoid':
console.log('calling gotoid with', args); console.log('calling gotoid with', args);
try { try {
global.timer.loadEventById(args.toLowerCase()); global.timer.loadEventById(args.toString().toLowerCase());
} catch (error) { } catch (error) {
console.log('error calling goto: ', error); console.log('error calling goto: ', error);
} }