From 2cac3f056798e44b679667040b76a6a667c98498 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 31 Oct 2013 12:33:19 +0100 Subject: [PATCH] detect Isso API endpoint when using *.dev.js script --- isso/js/app/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isso/js/app/api.js b/isso/js/app/api.js index d9d5a22..33cab7c 100644 --- a/isso/js/app/api.js +++ b/isso/js/app/api.js @@ -28,7 +28,7 @@ define(["q"], function(Q) { if (js[i].src.match("/js/components/requirejs/require\\.js$")) { endpoint = js[i].src.substring(0, js[i].src.length - 35); 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); break; } @@ -154,4 +154,4 @@ define(["q"], function(Q) { like: like, dislike: dislike }; -}); \ No newline at end of file +});