Merge pull request #330 from Manawyrm/master

Fix JS error when using hamqth
pull/425/head
Peter Goodhall 2019-07-25 10:10:20 +01:00 zatwierdzone przez GitHub
commit 827c565c36
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -257,7 +257,7 @@ $(document).ready(function(){
// Set Map to Lat/Long
markers.clearLayers();
if (typeof result.latlng !== "undefined") {
if (typeof result.latlng !== "undefined" && result.latlng !== false) {
var marker = L.marker([result.latlng[0], result.latlng[1]]);
mymap.setView([result.latlng[0], result.latlng[1]], 8);
} else {