From 42520b3ce9dc77d94e9d5ef47a206b5173680822 Mon Sep 17 00:00:00 2001 From: D A Date: Wed, 21 Sep 2022 20:52:42 -0400 Subject: [PATCH] Replaced depreciated substr with substring --- src/config.template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); });