Browse Source

warn user when location permission is denied

testing
Burathar 4 years ago
parent
commit
d3beaec1a5
  1. 1
      app/templates/player_base.html

1
app/templates/player_base.html

@ -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.")

Loading…
Cancel
Save