fix geolocation

This commit is contained in:
Eason010212
2023-09-05 20:35:42 +08:00
parent dcc5747244
commit 4bb76df896

View File

@@ -7,6 +7,13 @@
curlong = 0
curlati = 0
navigator.geolocation.getCurrentPosition(function(position){
curlong = position.coords.longitude
curlati = position.coords.latitude
}, function(error){
console.log(error)
})
function MixIOLogicError(message){
this.message = message
this.name = "MixIOLogicError"