From 14aafdf31a4e61d1d797c12bc96e36a067353ce7 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 29 May 2023 23:45:43 +0300 Subject: lws: fix --- localwebsite/htdocs/assets/app.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/localwebsite/htdocs/assets/app.js b/localwebsite/htdocs/assets/app.js index e72ecd9..664afba 100644 --- a/localwebsite/htdocs/assets/app.js +++ b/localwebsite/htdocs/assets/app.js @@ -272,10 +272,13 @@ window.Cameras = { this.hlsOptions = opts.hlsConfig; this.h265webjsOptions = opts.h265webjsConfig; - let useHls = Hls.isSupported(); - if (!useHls && !this.hasFallbackSupport() && opts.hlsConfig !== undefined) { - alert('Neither HLS nor vnd.apple.mpegurl is not supported by your browser.'); - return; + var useHls; + if (opts.hlsConfig !== undefined) { + useHls = Hls.isSupported(); + if (!useHls && !this.hasFallbackSupport()) { + alert('Neither HLS nor vnd.apple.mpegurl is not supported by your browser.'); + return; + } } for (var camId in opts.camsByType) { -- cgit v1.2.3