Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit 706a8e4

Browse files
committed
Fix potential crash
1 parent 511bb3f commit 706a8e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,12 @@ export class ControlThemAll {
736736
// Updating Audio Mix Option Feedback
737737
// On / Off / AudioFollowVideo
738738
if (isInitial || path.includes('fairlight.inputs')) {
739-
const [, audioIndex, audioChannel] = (/fairlight\.inputs\.([0-9]*)\.sources\.(-[0-9]*)\.properties/g).exec(path)
740-
this.feedbackFairlightAudioMixOptions(audioIndex, audioChannel)
739+
try {
740+
const [, audioIndex, audioChannel] = (/fairlight\.inputs\.([0-9]*)\.sources\.(-[0-9]*)\.properties/g).exec(path)
741+
this.feedbackFairlightAudioMixOptions(audioIndex, audioChannel)
742+
} catch (error) {
743+
console.log('could not handle fairlight/initial inputs');
744+
}
741745
}
742746

743747
// Updating Active Camera in Program & DVE Feedback

0 commit comments

Comments
 (0)