From db4895cd9cd362aa8ea15d607e6d6bfce3d0d597 Mon Sep 17 00:00:00 2001 From: Marcin Kowalicki Date: Tue, 12 Jan 2021 15:45:48 +0100 Subject: [PATCH] Remove some console.log's() --- files/js/messages.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/files/js/messages.js b/files/js/messages.js index 91b9d5f..0f157fb 100644 --- a/files/js/messages.js +++ b/files/js/messages.js @@ -15,7 +15,6 @@ const getReceivedMessages = () => { body: cookies_data }).then(response => response.json()).then(data => { content = document.getElementById("content") - console.log(data) wiadomosci = data.data table = document.createElement("table") @@ -36,21 +35,19 @@ const getReceivedMessages = () => { wiadomosci.forEach((wiadomosc) => { const tbody = document.getElementsByTagName("tbody")[0] - console.log(tbody) - wiadomoscRow = tbody.insertRow() temat = wiadomoscRow.insertCell() - temat.innerText = wiadomosc.Temat + temat.innerHTML = `${wiadomosc.Temat}` wiadomoscRow.appendChild(temat) nadawca = wiadomoscRow.insertCell() - nadawca.innerText = wiadomosc.Nadawca.Name + nadawca.innerHTML = `${wiadomosc.Nadawca.Name}` wiadomoscRow.appendChild(nadawca) dataWyslania = wiadomoscRow.insertCell() - dataWyslania.innerText = wiadomosc.Data + dataWyslania.innerHTML = `${wiadomosc.Data}` wiadomoscRow.appendChild(dataWyslania) }) })