From eeeb380686cc958f1be38d8bd2db35e96225fcce Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Mar 2026 20:27:16 +0000 Subject: [PATCH] Show raw geolocation error code and message for debugging --- templates/index.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/templates/index.html b/templates/index.html index 2637cc6..f7aba83 100644 --- a/templates/index.html +++ b/templates/index.html @@ -171,12 +171,7 @@ el.innerHTML = '📍 Location captured'; }, err => { - const msgs = { - 1: 'Permission denied — allow location in Safari settings.', - 2: 'Position unavailable.', - 3: 'Location request timed out.', - }; - el.innerHTML = `${msgs[err.code] || err.message}`; + el.innerHTML = `Error ${err.code}: ${err.message}`; }, { timeout: 15000 } );