From 6ee1db2ec8bdd3dfae967228fc4a25353880f6ca Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Thu, 6 Sep 2018 00:13:47 -0400 Subject: tweak header some more, moving things and respacing things, and add license --- assets/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'assets/main.js') diff --git a/assets/main.js b/assets/main.js index 8cb611d..5cbcf89 100644 --- a/assets/main.js +++ b/assets/main.js @@ -21,9 +21,7 @@ document.addEventListener("DOMContentLoaded", () => { var cryptoDisplay = document.querySelector('#crypto-display'); var clearCryptoDisplay = () => { - while(cryptoDisplay.firstChild) { - cryptoDisplay.removeChild(cryptoDisplay.firstChild); - } + cryptoDisplay.innerHTML = ' '; }; console.log("setting up crypto buttons"); -- cgit v1.2.3