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

fhemweb.js: Check for overrideMimeType for Win 8.1 (Forum #66004)

git-svn-id: https://svn.fhem.de/fhem/trunk@13276 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-01-29 18:29:13 +00:00
parent 1907fc7bf3
commit 320f38f00f

View File

@ -899,7 +899,8 @@ FW_longpoll()
} else {
FW_pollConn = new XMLHttpRequest();
FW_pollConn.open("GET", location.pathname+query, true);
FW_pollConn.overrideMimeType("application/json");
if(FW_pollConn.overrideMimeType) // Win 8.1, #66004
FW_pollConn.overrideMimeType("application/json");
FW_pollConn.onreadystatechange = FW_doUpdate;
FW_pollConn.send(null);