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 } );