diff --git a/src/config.template.js b/src/config.template.js index cef42ed..643f5a8 100644 --- a/src/config.template.js +++ b/src/config.template.js @@ -8,7 +8,7 @@ var API_URL = '{{ protocol }}://api.{{ host }}'; // Parse query string var query = {}; -location.search.substr(1).split("&").forEach(function(item) { +location.search.substring(1).split("&").forEach(function(item) { query[item.split("=")[0]] = item.split("=")[1] && decodeURIComponent(item.split("=")[1]); });