🥅 Better error handling

This commit is contained in:
Gina Häußge committed 2022-05-12 10:58:08 +02:00
1 parent 4d9e86ca0f
commit d1fca86636
1 file changed
+7 -1
@@ -573,7 +573,13 @@ $(function () {
}
// Determine stream type and switch to corresponding webcam.
var streamType = determineWebcamStreamType(self.settings.webcam_streamUrl());
var streamType;
try {
streamType = determineWebcamStreamType(self.settings.webcam_streamUrl());
} catch (e) {
streamType = "";
}
if (streamType == "mjpg") {
self._switchToMjpgWebcam();
} else if (streamType == "hls") {