fix api redirect for public plugins
This commit is contained in:
parent
ac83280b68
commit
ab7694dae9
@ -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');
|
||||
}
|
||||
|
||||
|
@ -79,8 +79,8 @@
|
||||
</div>
|
||||
<div class="panel-body panel-home">
|
||||
<ul>
|
||||
<li><a href="https://github.com/iobridge/ThingSpeak" title="Open Source Internet of Things Project on GitHub">GitHub</a></li>
|
||||
<li><a href="http://www.twitter.com/thingspeak" title="Follow ThingSpeak on Twitter">Twitter</a></li>
|
||||
<li><a href="https://github.com/iobridge/ThingSpeak" title="Open Source Internet of Things Project on GitHub" target="_blank">GitHub</a></li>
|
||||
<li><a href="http://www.twitter.com/thingspeak" title="Follow ThingSpeak on Twitter" target="_blank">Twitter</a> / <a href="https://plus.google.com/+thingspeak" rel="publisher" target="_blank">Google+</a></li>
|
||||
<li><a href="http://community.thingspeak.com/" title="ThingSpeak IoT Blog">Blog</a></li>
|
||||
<li><a href="http://community.thingspeak.com/forum/" title="Join the ThingSpeak Forum">Forum</a></li>
|
||||
<li><a href="/docs" title="ThingSpeak API and Apps Documentation">Documentation</a></li>
|
||||
|
File diff suppressed because one or more lines are too long
BIN
public/assets/application-7b10cb0bd2f4f605f89eff19ab4a74d1.js.gz
Normal file
BIN
public/assets/application-7b10cb0bd2f4f605f89eff19ab4a74d1.js.gz
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user