fix api redirect for public plugins
This commit is contained in:
1 parent
ac83280b68
commit
ab7694dae9
5 files changed
+11
-5
No files matched your search
@@ -1,6 +1,6 @@
|
||||
// if on api subdomain except for charts, redirect
|
||||
// if on api subdomain except for charts and plugins, redirect
|
||||
var wloc = window.location.toString();
|
||||
if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1) {
|
||||
if (wloc.indexOf('api') !== -1 && wloc.indexOf('api') < 10 && wloc.indexOf('charts') === -1 && wloc.indexOf('plugins') === -1) {
|
||||
window.location = wloc.replace('api', 'www');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user