Fixing some JavaScript stupidity

This commit is contained in:
BlackLight 2010-10-08 18:57:06 +02:00
parent ee0719f239
commit 6c3e00bc8d

View file

@ -29,7 +29,7 @@ window.onload = function() {
window.innerHeight- 50 : 50;
}
req.open ( 'GET', 'http://localhost:7654/correlation_graph.json', true );
req.open ( 'GET', 'http://' + window.location.host + '/correlation_graph.json', true );
req.onreadystatechange = function() {
if ( req.readyState == 4 && req.status == 200 )
{