|
|
@ -36,6 +36,7 @@ function showError(error) { |
|
|
|
switch(error.code) { |
|
|
|
switch(error.code) { |
|
|
|
case error.PERMISSION_DENIED: |
|
|
|
case error.PERMISSION_DENIED: |
|
|
|
console.log("User denied the request for Geolocation.") |
|
|
|
console.log("User denied the request for Geolocation.") |
|
|
|
|
|
|
|
alert("Please refresh page and allow location sharing, otherwise the game won't work :'(") |
|
|
|
break; |
|
|
|
break; |
|
|
|
case error.POSITION_UNAVAILABLE: |
|
|
|
case error.POSITION_UNAVAILABLE: |
|
|
|
console.log("Location information is unavailable.") |
|
|
|
console.log("Location information is unavailable.") |
|
|
|