https://bugs.webkit.org/show_bug.cgi?id=80362
Note: Probably all other "plain" webkit browsers are affected until
the above bug is resolved.
};
tvheadend.cometInit = function() {
- if ("WebSocket" in window) {
+ var isSafari = navigator.vendor && navigator.vendor.indexOf('Apple') > -1 &&
+ navigator.userAgent && !navigator.userAgent.match('CriOS');
+ if (!isSafari && ("WebSocket" in window)) {
var loc = window.location;
var path = loc.pathname.substring(0, loc.pathname.lastIndexOf("/"));
tvheadend.wsURI = (loc.protocol === "https:" ? "wss:" : "ws:") + "//" + loc.host + path + "/comet/ws";