mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +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:
parent
1366dc4d9a
commit
b079623417
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user