diff --git a/webapp/src/App.vue b/webapp/src/App.vue
index 33f9737..788a909 100644
--- a/webapp/src/App.vue
+++ b/webapp/src/App.vue
@@ -17,6 +17,7 @@ const items = [
{ title: 'About', icon: 'mdi-information', to: '/about' },
{ title: 'Contact', icon: 'mdi-email', to: '/contact' },
{ title: 'Feature Roadmap', icon: 'mdi-road-variant', to: '/roadmap' },
+ { title: 'GitHub', icon: 'mdi-github', href: 'https://github.com/frillweeman/deflock'}
]
const drawer = ref(false)
@@ -61,6 +62,7 @@ watch(() => theme.global.name.value, (newTheme) => {
:key="item.title"
link
:to="item.to"
+ :href="item.href"
>{{ item.icon }}{{ item.title }}
diff --git a/webapp/src/views/HomeView.vue b/webapp/src/views/HomeView.vue
index 8f820d4..3c6f608 100644
--- a/webapp/src/views/HomeView.vue
+++ b/webapp/src/views/HomeView.vue
@@ -3,7 +3,7 @@
-
+
@@ -59,6 +59,9 @@
+
+ mdi-crosshairs-gps
+
{
+ center.value = { lat: location[0], lng: location[1] };
+ }).catch(error => {
+ console.debug('Error getting user location.', error);
+ });
+}
+
function getUserLocation(): Promise<[number, number]> {
return new Promise((resolve, reject) => {
if (navigator.geolocation) {
@@ -253,17 +265,9 @@ onMounted(() => {
lng: parseFloat(parts[2]),
};
}
+ } else {
+ center.value = { lat: 37.855068, lng: -122.357998 };
}
-
- getUserLocation()
- .then(location => {
- if (!hash)
- center.value = { lat: location[0], lng: location[1] };
- }).catch(error => {
- // TODO: allow search
- console.debug('Error getting user location. Defaulting to Huntsville, AL.', error);
- center.value = { lat: 34.730819, lng: -86.586114 }; // Huntsville, AL
- });
});