File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -630,8 +630,9 @@ class Chat {
630
630
} = yield _this6 . obs . send ( "GetSourceSettings" , {
631
631
sourceName : e . sourceName
632
632
} ) ;
633
+ var input = sourceSettings === null || sourceSettings === void 0 ? void 0 : sourceSettings . input . toLowerCase ( ) ;
633
634
634
- if ( sourceSettings . input . includes ( "rtmp" ) || sourceSettings . input . includes ( "srt" ) ) {
635
+ if ( input !== null && input !== void 0 && input . startsWith ( "rtmp" ) || input !== null && input !== void 0 && input . startWith ( "srt" ) ) {
635
636
yield _this6 . obs . send ( "RestartMedia" , {
636
637
sourceName : e . sourceName
637
638
} ) ;
Original file line number Diff line number Diff line change @@ -646,9 +646,9 @@ class Chat {
646
646
sourceName : e . sourceName
647
647
} ) ;
648
648
649
- if ( sourceSettings . input . includes ( "rtmp" ) ||
650
- sourceSettings . input . includes ( "srt" )
651
- ) {
649
+ const input = sourceSettings . input ?. toLowerCase ( ) ;
650
+
651
+ if ( input ?. startsWith ( "rtmp" ) || input ?. startWith ( "srt" ) ) {
652
652
await this . obs . send ( "RestartMedia" , {
653
653
sourceName : e . sourceName
654
654
} ) ;
You can’t perform that action at this time.
0 commit comments