From ad81eb77c1397ff3e68e6c3632de8d00f012837b Mon Sep 17 00:00:00 2001 From: Raul Rene Lepsa Date: Tue, 27 Mar 2018 14:07:21 +0300 Subject: [PATCH] Encoding geocode param. Should fix #36 --- api-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-functions.js b/api-functions.js index 893acd2..27cf486 100644 --- a/api-functions.js +++ b/api-functions.js @@ -30,7 +30,7 @@ const API = { params += `&max_id=${max_id}`; } if (geocode) { - params += `&geocode=${geocode}`; + params += `&geocode=${encodeURIComponent(geocode)}`; } allItems = [];