From c5af859286f7a17f6dac2c604f03cee3c179f5e5 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 +});