API-elements are correctly removed on refresh

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-20 17:49:28 +02:00
parent b1412d9fc3
commit 12efbbcd99
22 changed files with 4 additions and 1 deletions

View File

@@ -41,7 +41,10 @@ window.addEventListener("DOMContentLoaded", function() {
document.getElementById("descriptions_cont").innerHTML = "";
document.getElementById("thumbnails_cont").innerHTML = "";
document.querySelector(".names-container").innerHTML = "";
document.querySelector(".api_token_container").remove();
var elements = document.querySelectorAll(".api_token_container");
for(var i = 0; i < elements.length; i++) {
elements[i].remove();
}
addClass(".channel_things", "hide");