From 48477ccbb63b0a10afaaaa5f5d8cef1ea2603ee1 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 29 Apr 2021 12:44:49 +0200 Subject: [PATCH] dumper.js: removed unused attributes & tags --- src/Tracy/Dumper/assets/dumper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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
 					}