Loading js/script.js +1 −1 Changes for js/script.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ const setVilles = async codepostal => { return fetch("https://geo.api.gouv.fr/communes?codePostal="+codepostal) .then(res =>{ if(!res.ok){ throw new Error("gofuckyourself") throw new Error("An error has been made") } return res.json(); }) Loading Loading
js/script.js +1 −1 Changes for js/script.js: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ const setVilles = async codepostal => { return fetch("https://geo.api.gouv.fr/communes?codePostal="+codepostal) .then(res =>{ if(!res.ok){ throw new Error("gofuckyourself") throw new Error("An error has been made") } return res.json(); }) Loading