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 7e6cdcf commit 6094024
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 6094024

Please sign in to comment.