Fix JS error when using hamqth

这个提交包含在:
Tobias Mädel 2019-07-25 09:11:11 +02:00 提交者 GitHub
父节点 eac07da0c0
当前提交 89f97531fe
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -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 {