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:
rudolfkoenig
2017-02-28 09:02:45 +00:00
parent ab11451a99
commit 6781bfc1d3

View File

@@ -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;