Fixed js lint
This commit is contained in:
1 parent
d25a9f94b8
commit
33e1f6cac8
1 file changed
+5
-1
@@ -713,7 +713,11 @@ $(function () {
|
||||
var video = document.getElementById("webcam_hls");
|
||||
|
||||
// Check for native playback options: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType
|
||||
if (video != null && typeof video.canPlayType != undefined && video.canPlayType("application/vnd.apple.mpegurl") == "probably") {
|
||||
if (
|
||||
video != null &&
|
||||
typeof video.canPlayType != undefined &&
|
||||
video.canPlayType("application/vnd.apple.mpegurl") == "probably"
|
||||
) {
|
||||
video.src = self.settings.webcam_streamUrl();
|
||||
} else if (Hls.isSupported()) {
|
||||
var hls = new Hls();
|
||||
|
||||
Reference in new issue
Block a user