diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index c704a46..33b6d30 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -20,6 +20,18 @@ export default {
methods: {
+ useCurrentLocation() {
+
+ if (location.protocol == 'http:') {
+ alert("Sorry, this only works for secure sites.")
+ }
+
+ navigator.geolocation.getCurrentPosition(loc => {
+ this.coordinates = `${loc.coords.latitude},${loc.coords.longitude}`
+ this.loadCoordinates()
+ })
+ },
+
editLocations() {
this.$router.push('/edit-list')
},
@@ -124,6 +136,16 @@ export default {
+
+