diff --git a/src/Tracy/Dumper/assets/dumper.js b/src/Tracy/Dumper/assets/dumper.js index a2a743237..0eb09ae9e 100644 --- a/src/Tracy/Dumper/assets/dumper.js +++ b/src/Tracy/Dumper/assets/dumper.js @@ -38,6 +38,7 @@ class Dumper pre.removeAttribute('data-tracy-dump'); pre.classList.remove('tracy-collapsed'); }); + meta.remove(); }); if (Dumper.inited) { @@ -56,7 +57,8 @@ class Dumper // initializes lazy inside
 			if ((el = e.target.closest('[data-tracy-snapshot]'))) {
 				let snapshot = JSON.parse(el.getAttribute('data-tracy-snapshot'));
-				el.querySelectorAll('[data-tracy-dump]').forEach((toggler) => {
+					el.removeAttribute('data-tracy-snapshot');
+					el.querySelectorAll('[data-tracy-dump]').forEach((toggler) => {
 					if (!toggler.nextSibling) {
 						toggler.after(document.createTextNode('\n')); // enforce \n after toggler
 					}