Skip to content

Commit

Permalink
[VarDumper] Fix JS to expand / collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jan 16, 2023
1 parent cdfa643 commit 2944bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dumper/HtmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ protected function getDumpHeader()
};
refStyle.innerHTML = 'pre.sf-dump .sf-dump-compact, .sf-dump-str-collapse .sf-dump-str-collapse, .sf-dump-str-expand .sf-dump-str-expand { display: none; }';
(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
doc.head.appendChild(refStyle);
refStyle = doc.createElement('style');
(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
doc.head.appendChild(refStyle);
if (!doc.addEventListener) {
addEventListener = function (element, eventName, callback) {
Expand Down

0 comments on commit 2944bbc

Please sign in to comment.