detect Isso API endpoint when using *.dev.js script

This commit is contained in:
Martin Zimmermann 2013-10-31 12:33:19 +01:00
parent d19933072f
commit 2cac3f0567

View File

@ -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;
} }
@ -154,4 +154,4 @@ define(["q"], function(Q) {
like: like, like: like,
dislike: dislike dislike: dislike
}; };
}); });