From d3beaec1a56b52a5641bc05f8fe538694e6eb7eb Mon Sep 17 00:00:00 2001 From: Burathar Date: Wed, 22 Jul 2020 19:06:04 +0200 Subject: [PATCH] warn user when location permission is denied --- app/templates/player_base.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/templates/player_base.html b/app/templates/player_base.html index 29bb2e2..eb8f818 100644 --- a/app/templates/player_base.html +++ b/app/templates/player_base.html @@ -36,6 +36,7 @@ function showError(error) { switch(error.code) { case error.PERMISSION_DENIED: console.log("User denied the request for Geolocation.") + alert("Please refresh page and allow location sharing, otherwise the game won't work :'(") break; case error.POSITION_UNAVAILABLE: console.log("Location information is unavailable.")