summaryrefslogtreecommitdiff
path: root/localwebsite/htdocs
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-29 23:58:18 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-29 23:58:18 +0300
commit2dc1ec92fda679130c60d63f22862c44169b5280 (patch)
treee82041b0efa4108c1de045a6f5ba3269a2889743 /localwebsite/htdocs
parentf8f752fcc9c25484012b478d1d99097836f4e344 (diff)
parent14aafdf31a4e61d1d797c12bc96e36a067353ce7 (diff)
Merge branch 'master' of ch1p.io:homekit
Diffstat (limited to 'localwebsite/htdocs')
-rw-r--r--localwebsite/htdocs/assets/app.js11
1 files 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) {