Skip to content

Commit

Permalink
Dumper: fixed putting location before dump [Closes #343]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 28, 2019
1 parent f268fcf commit ab6e7ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Tracy/Dumper/assets/dumper.js
Expand Up @@ -33,8 +33,9 @@
return;
}

preList.forEach((el) => {
el.appendChild(build(JSON.parse(el.getAttribute('data-tracy-dump')), snapshot, el.classList.contains('tracy-collapsed')));
preList.forEach((el) => { // <pre>
let built = build(JSON.parse(el.getAttribute('data-tracy-dump')), snapshot, el.classList.contains('tracy-collapsed'));
el.insertBefore(built, el.lastChild);
el.classList.remove('tracy-collapsed');
el.removeAttribute('data-tracy-dump');
});
Expand Down

0 comments on commit ab6e7ca

Please sign in to comment.