7 lines
236 B
JavaScript
7 lines
236 B
JavaScript
// if on api subdomain except for charts, redirect
|
|
var wloc = window.location.toString();
|
|
if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1) {
|
|
window.location = wloc.replace('api', 'www');
|
|
}
|
|
|