summaryrefslogtreecommitdiff
path: root/assets/main.js
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2018-09-06 00:13:47 -0400
committerBrian Picciano <mediocregopher@gmail.com>2018-09-06 00:14:25 -0400
commit6ee1db2ec8bdd3dfae967228fc4a25353880f6ca (patch)
treeb5d05c70e9fd34c68ce0f260fff22f56eecbb3e6 /assets/main.js
parent52a73574488df86a0b251aa106b1dd40ed90c247 (diff)
tweak header some more, moving things and respacing things, and add license
Diffstat (limited to 'assets/main.js')
-rw-r--r--assets/main.js4
1 files changed, 1 insertions, 3 deletions
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 = '&nbsp;';
};
console.log("setting up crypto buttons");