mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
pgm2/fhemweb.js: fix crash when URL contains a # (Forum #80460)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@15547 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
08e1f2d3a5
commit
79c6fb902f
@ -981,7 +981,7 @@ FW_longpoll()
|
|||||||
|
|
||||||
var loc = (""+location).replace(/\?.*/,"");
|
var loc = (""+location).replace(/\?.*/,"");
|
||||||
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
|
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
|
||||||
FW_pollConn = new WebSocket(loc.replace(/[&?].*/,'')
|
FW_pollConn = new WebSocket(loc.replace(/[#&?].*/,'')
|
||||||
.replace(/^http/i, "ws")+query);
|
.replace(/^http/i, "ws")+query);
|
||||||
FW_pollConn.onclose =
|
FW_pollConn.onclose =
|
||||||
FW_pollConn.onerror =
|
FW_pollConn.onerror =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user