Skip to content

Commit

Permalink
fix iframe flag default value
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored May 13, 2024
1 parent 8f7c381 commit 4446d0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DebugBar/Resources/debugbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.options.bodyMarginBottomHeight = parseInt($('body').css('margin-bottom'));
try {
this.isIframe = window.self !== window.top && window.top.phpdebugbar;
} catch (error) {}
} catch (error) {
this.isIframe = false;
}
this.registerResizeHandler();
},

Expand Down

0 comments on commit 4446d0e

Please sign in to comment.