2014-03-22 18:21:45 +01:00
|
|
|
// if on api subdomain except for charts, redirect
|
2014-02-17 18:05:39 +01:00
|
|
|
var wloc = window.location.toString();
|
2014-03-22 18:21:45 +01:00
|
|
|
if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1) {
|
2014-02-17 18:05:39 +01:00
|
|
|
window.location = wloc.replace('api', 'www');
|
2014-03-22 18:21:45 +01:00
|
|
|
}
|
|
|
|
|