From b4bb1940d3a09573284d0ccce90edc75cc1974f1 Mon Sep 17 00:00:00 2001 From: Sergey <32025367+sergeyyarkov@users.noreply.github.com> Date: Sat, 21 Sep 2019 21:48:11 +0300 Subject: [PATCH] Update app.js --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 6fd07e3..c3c135a 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ function weatherInfo() { document.querySelector('#search-btn').onclick = () => { // запрос const searchValue = document.querySelector('#search-area').value; - const request = `http://api.openweathermap.org/data/2.5/weather?q=${searchValue}&appid=32dda4a23cf5093afca2f2f086c16833`; + const request = `https://api.openweathermap.org/data/2.5/weather?q=${searchValue}&appid=32dda4a23cf5093afca2f2f086c16833`; if (searchValue.trim() != '') { // обработчик @@ -65,4 +65,4 @@ function weatherInfo() { }; } -weatherInfo(); \ No newline at end of file +weatherInfo();