From: Bernhard Tittelbach Date: Sat, 7 Aug 2010 11:40:16 +0000 (+0000) Subject: google chrome fix X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=3d9f800ee0d70494066035af472fcef381a7496c;p=svn42.git google chrome fix --- diff --git a/powersensordaemon/switch.cgi b/powersensordaemon/switch.cgi index 58147d9..ee8074e 100755 --- a/powersensordaemon/switch.cgi +++ b/powersensordaemon/switch.cgi @@ -83,10 +83,12 @@ echo "Realraum rf433ctl" echo '' echo "" diff --git a/powersensordaemon/ymhremote.html b/powersensordaemon/ymhremote.html index 22ebe64..085d111 100755 --- a/powersensordaemon/ymhremote.html +++ b/powersensordaemon/ymhremote.html @@ -10,6 +10,8 @@ function sendButton( btn ) var req = new XMLHttpRequest(); url = "http://slug.realraum.at/cgi-bin/switch.cgi?power=send&id="+btn; req.open("GET", url ,false); + //google chrome workaround + req.setRequestHeader("googlechromefix",""); req.send(null); //response = req.responseText; //document.getElementById('output').innerHTML = response;