Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
lokn authored Jan 7, 2022
1 parent a0421eb commit 8a205a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ document.addEventListener("DOMContentLoaded", function() {
if (isValidHttpUrl(ev.location)) {
a.href = ev.location;
} else {
a.href = 'https://www.openstreetmap.org/search?query=' +
encodeURIComponent(ev.location +
(ev.location.match(/, (\d+ )?[a-zA-Z ]+$/)? "" : ", Bremen"));
a.href = 'https://www.openstreetmap.org/search?query=' + encodeURIComponent(ev.location + (ev.location.match(/, (\d+ )?[a-zA-Z ]+$/)? "" : ", Bremen"));
}
a.textContent = ev.location;
loc.appendChild(a);
Expand Down

0 comments on commit 8a205a5

Please sign in to comment.