From 33e1f6cac8b31411d88e0e5d565c896f399925a6 Mon Sep 17 00:00:00 2001 From: LazeMSS Date: Sat, 10 Apr 2021 00:38:43 +0200 Subject: [PATCH] Fixed js lint --- src/octoprint/static/js/app/viewmodels/control.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/octoprint/static/js/app/viewmodels/control.js b/src/octoprint/static/js/app/viewmodels/control.js index e8c96eb06..2803eae8b 100644 --- a/src/octoprint/static/js/app/viewmodels/control.js +++ b/src/octoprint/static/js/app/viewmodels/control.js @@ -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();