Skip to content

Commit

Permalink
Missing file - oops.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Jan 30, 2025
1 parent 282002f commit cf2092d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.26.60',
'version' => '4.26.61',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down Expand Up @@ -1173,10 +1173,18 @@ function hideDebugBar() {
window.requestAnimationFrame(hideDebugBar);
} else {
document.getElementById("tracy-debug").style.display = "none";
document.getElementById("tracy-show-button").style.display = "block";
}
}
hideDebugBar();
function showShowButton() {
if(!document.getElementById("tracy-show-button")) {
window.requestAnimationFrame(showShowButton);
} else {
document.getElementById("tracy-show-button").style.display = "block";
}
}
showShowButton();
</script>
';
$event->return = str_replace("</body>", "\n<!-- Tracy Hide Bar -->\n" . static::minify($hideBar)."\n</body>", $event->return);
Expand Down

0 comments on commit cf2092d

Please sign in to comment.