2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

pgm2/fhemweb.js: fix crash when URL contains a # (Forum #80460)

git-svn-id: https://svn.fhem.de/fhem/trunk@15547 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-03 18:31:00 +00:00
parent 1366dc4d9a
commit b079623417

View File

@ -981,7 +981,7 @@ FW_longpoll()
var loc = (""+location).replace(/\?.*/,"");
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
FW_pollConn = new WebSocket(loc.replace(/[&?].*/,'')
FW_pollConn = new WebSocket(loc.replace(/[#&?].*/,'')
.replace(/^http/i, "ws")+query);
FW_pollConn.onclose =
FW_pollConn.onerror =