From e0b033ec0f33dca7361e7a07a38cc54072aba6e1 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 7 Aug 2017 18:05:41 -0400 Subject: [PATCH] Added error logging --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 07eb12d..1027b3c 100644 --- a/script.js +++ b/script.js @@ -106,8 +106,9 @@ if (!navigator.geolocation){ }, // Got error - function() { + function(err) { alert("No geolocation position available!"); + console.error(err); }, // Options