Skip to content

Commit

Permalink
remove api key
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeeppy committed May 1, 2023
1 parent d01689d commit 255dcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session34/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if ("geolocation" in navigator)
navigator.geolocation.watchPosition((position) => {
const url = 'https://api.openweathermap.org/data/2.5/weather?lon=' +
position.coords.longitude + '&lat=' +
position.coords.latitude +'&appid=dc8c9152e8adaad0ec8bf635818c0d42&units=metric';
position.coords.latitude +'&appid=?&units=metric';

let requete = new XMLHttpRequest(); // Nous créons un objet qui nous permettra de faire des requêtes
requete.open('GET', url); // Nous récupérons juste des données
Expand Down

0 comments on commit 255dcaa

Please sign in to comment.