Coś się popsuło

This commit is contained in:
Christopher
2024-02-01 03:15:39 +01:00
committed by GitHub
parent 0bfa206d8a
commit 6e2811773a
+3 -3
View File
@@ -1,10 +1,10 @@
if(getCookie("api") == "")
addApi();
let api = getCookie("api") != "" ? getCookie("api") : ""; let api = getCookie("api") != "" ? getCookie("api") : "";
let city = getCookie("city") != "" ? getCookie("city") : "3093133"; let city = getCookie("city") != "" ? getCookie("city") : "3093133";
let type = getCookie("type") != "" ? getCookie("type") : "id"; let type = getCookie("type") != "" ? getCookie("type") : "id";
if(getCookie("api") == "")
addApi();
function call(){ function call(){
let api_call = `https://api.openweathermap.org/data/2.5/weather?${type}=${city}&appid=${api}&units=metric&lang=pl`; let api_call = `https://api.openweathermap.org/data/2.5/weather?${type}=${city}&appid=${api}&units=metric&lang=pl`;