diff --git a/src/Tracy/Bar/assets/bar.js b/src/Tracy/Bar/assets/bar.js index cb1a9331b..403757350 100644 --- a/src/Tracy/Bar/assets/bar.js +++ b/src/Tracy/Bar/assets/bar.js @@ -31,7 +31,8 @@ class Panel { let elem = this.elem; this.init = function () {}; - elem.innerHTML = elem.dataset.tracyContent; + elem.innerHTML = elem.tracyContent = elem.dataset.tracyContent; + delete elem.dataset.tracyContent; Tracy.Dumper.init(Debug.layer); evalScripts(elem); @@ -156,7 +157,7 @@ class Panel { let meta = this.elem.parentElement.lastElementChild; doc.body.innerHTML = '' - + '
' + this.elem.dataset.tracyContent + '
' + + '
' + this.elem.tracyContent + '
' + meta.outerHTML + '
'; evalScripts(doc.body);