From 3d9f800ee0d70494066035af472fcef381a7496c Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 7 Aug 2010 11:40:16 +0000 Subject: [PATCH] google chrome fix --- powersensordaemon/switch.cgi | 10 ++++++---- powersensordaemon/ymhremote.html | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) 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; -- 1.7.10.4