From 320f38f00fb2c2895ffc64d98dc3cfb8f965ee4b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 29 Jan 2017 18:29:13 +0000 Subject: [PATCH] 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 --- fhem/www/pgm2/fhemweb.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index bde0cfb4f..693c876c3 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -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);