craft-nft

A standalone NFT implementation for real-world arts and crafts assets
Log | Files | Refs | README

commit 350bc323c6b8d3a02345767351ef86d99ceea608
parent 93b364d2c00351f74090b969471c66a91e953cfd
Author: lash <dev@holbrook.no>
Date:   Mon,  6 Feb 2023 16:48:02 +0000

Remove image when browse to new token

Diffstat:
Mjs/manual_test_browser.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/js/manual_test_browser.js b/js/manual_test_browser.js @@ -218,6 +218,10 @@ async function uiViewToken(tokenId) { } } + const image_display = document.getElementById('token_image'); + if (image_display.lastChild !== null) { + image_display.removeChild(image_display.lastChild); + } const batch_shit = document.getElementById('token_batches'); while (batch_shit.lastChild) { batch_shit.removeChild(batch_shit.lastChild);