fhemweb.js: remove unneeded csrf from the longpoll connection

git-svn-id: https://svn.fhem.de/fhem/trunk@13349 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2017-02-06 22:12:36 +00:00
parent f89fcdc22a
commit 9bfe8e39d7

View File

@@ -889,7 +889,6 @@ FW_longpoll()
"&inform=type=status;filter="+filter+";since="+since+";fmt=JSON"+ "&inform=type=status;filter="+filter+";since="+since+";fmt=JSON"+
'&fw_id='+$("body").attr('fw_id')+ '&fw_id='+$("body").attr('fw_id')+
"&timestamp="+new Date().getTime(); "&timestamp="+new Date().getTime();
query = addcsrf(query);
var loc = (""+location).replace(/\?.*/,""); var loc = (""+location).replace(/\?.*/,"");
if(typeof WebSocket == "function" && FW_longpollType == "websocket") { if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
@@ -908,8 +907,8 @@ FW_longpoll()
} }
log("Inform-channel opened ("+(FW_longpollType == 1 ? "HTTP":FW_longpollType ) log("Inform-channel opened ("+(FW_longpollType==1 ? "HTTP":FW_longpollType)+
+") with filter "+filter); ") with filter "+filter);
} }
/*************** LONGPOLL END **************/ /*************** LONGPOLL END **************/