aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/services/OpenWeather.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/services/OpenWeather.vue b/src/components/services/OpenWeather.vue
index b1e5c57..c535a89 100644
--- a/src/components/services/OpenWeather.vue
+++ b/src/components/services/OpenWeather.vue
@@ -89,7 +89,7 @@ export default {
89 }, 89 },
90 methods: { 90 methods: {
91 fetchStatus: async function () { 91 fetchStatus: async function () {
92 const url = `${this.item.url}?q=${this.item.location}&appid=${this.item.apiKey}&units=${this.item.units}`; 92 const url = `https://api.openweathermap.org/data/2.5/weather?q=${this.item.location}&appid=${this.item.apiKey}&units=${this.item.units}`;
93 this.api = await fetch(url) 93 this.api = await fetch(url)
94 .then((response) => response.json()) 94 .then((response) => response.json())
95 .catch((e) => console.log(e)); 95 .catch((e) => console.log(e));