Skip to content

Commit

Permalink
CBDEBUGGER-18 #resolve
Browse files Browse the repository at this point in the history
donot override the window on load event, just attach yourself
  • Loading branch information
lmajano committed Apr 21, 2022
1 parent 914b2ab commit afc399c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/assets/js/cbdebugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ window.coldboxDebugger = ( () => {
/**
* Listen to dom load and attach
*/
window.onload = ()=> console.log( "ColdBox Debugger Loaded!" );
window.addEventListener( "load", ( event ) => {
console.log( "ColdBox Debugger Loaded!" );
} );

return {
/**
Expand Down

0 comments on commit afc399c

Please sign in to comment.