Coś się popsuło
This commit is contained in:
@@ -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`;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user