detect Isso API endpoint when using *.dev.js script
This commit is contained in:
parent
d19933072f
commit
2cac3f0567
@ -28,7 +28,7 @@ define(["q"], function(Q) {
|
|||||||
if (js[i].src.match("/js/components/requirejs/require\\.js$")) {
|
if (js[i].src.match("/js/components/requirejs/require\\.js$")) {
|
||||||
endpoint = js[i].src.substring(0, js[i].src.length - 35);
|
endpoint = js[i].src.substring(0, js[i].src.length - 35);
|
||||||
break;
|
break;
|
||||||
} else if (js[i].src.match("/js/(embed|count)\\.min\\.js$")) {
|
} else if (js[i].src.match("/js/(embed|count)\\.(min|dev)\\.js$")) {
|
||||||
endpoint = js[i].src.substring(0, js[i].src.length - 16);
|
endpoint = js[i].src.substring(0, js[i].src.length - 16);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user