diff --git a/server/public/shared/js/anyplace-core-js/shared.js b/server/public/shared/js/anyplace-core-js/shared.js index eb8f69606..e804ef3f0 100644 --- a/server/public/shared/js/anyplace-core-js/shared.js +++ b/server/public/shared/js/anyplace-core-js/shared.js @@ -295,11 +295,12 @@ var regex_ck_lon = /^(-?(?:1[0-7]|[1-9])?\d(?:\.\d{1,18})?|180(?:\.0{1,18})?)$/; /** * accepts coordinates in google maps format: * @param str e.g., '57.693431580156464, 11.913933480401484' + * * @returns {{}|null} */ function get_coordinates(str){ LOG.D4("get_coordinates: " + str) - let spaces = str.split(" "); + var spaces = str.split(" "); if (spaces.length === 2) { var lat = spaces[0].slice(0, -1); // remove last comma var lon = spaces[1]