7 lines
282 B
JavaScript
Raw Normal View History

2014-05-09 13:32:52 -04:00
// if on api subdomain except for charts and plugins, redirect
var wloc = window.location.toString();
2014-05-09 13:32:52 -04:00
if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1 && wloc.indexOf('plugins') === -1) {
window.location = wloc.replace('api', 'www');
2014-03-22 13:21:45 -04:00
}