]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
javascript: fix websocket comet protocol identification (for chrome), fixes #4511
authorJaroslav Kysela <perex@perex.cz>
Tue, 1 Aug 2017 18:05:52 +0000 (20:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 1 Aug 2017 18:05:52 +0000 (20:05 +0200)
src/webui/static/app/comet.js

index bf5bc6f4f61b4c45fef7c773087ff50d70ee933f..8673c17fbe706e90b3fff1e57194b27960a1a8c2 100644 (file)
@@ -74,7 +74,7 @@ tvheadend.cometWebsocket = function() {
         var uri = tvheadend.wsURI;
         if (tvheadend.boxid)
           uri = uri + '?boxid=' + tvheadend.boxid;
-        tvheadend.ws = new WebSocket(uri);
+        tvheadend.ws = new WebSocket(uri, ['tvheadend-comet']);
         if (failures > 5)
             window.location.reload();
         if (failures > 1)