mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: fix websocket longpoll with fragment identifier (Forum #68089)
git-svn-id: https://svn.fhem.de/fhem/trunk@13547 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc1acad9b2
commit
c5bd4cf45a
@ -916,7 +916,7 @@ FW_longpoll()
|
||||
|
||||
var loc = (""+location).replace(/\?.*/,"");
|
||||
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
|
||||
FW_pollConn = new WebSocket((loc+query).replace(/^http/i, "ws"));
|
||||
FW_pollConn = new WebSocket(loc.replace(/[&?].*/,'').replace(/^http/i, "ws")+query);
|
||||
FW_pollConn.onclose =
|
||||
FW_pollConn.onerror =
|
||||
FW_pollConn.onmessage = FW_doUpdate;
|
||||
|
Loading…
Reference in New Issue
Block a user