We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cross-origin
1 parent 20cffd7 commit 7705be9Copy full SHA for 7705be9
src/DebugBar/Resources/debugbar.js
@@ -425,7 +425,11 @@ if (typeof(PhpDebugBar) == 'undefined') {
425
this.activeDatasetId = null;
426
this.datesetTitleFormater = new DatasetTitleFormater(this);
427
this.options.bodyMarginBottomHeight = parseInt($('body').css('margin-bottom'));
428
- this.isIframe = window.self !== window.top;
+ try {
429
+ this.isIframe = window.self !== window.top && window.top.phpdebugbar;
430
+ } catch (error) {
431
+ this.isIframe = false;
432
+ }
433
this.registerResizeHandler();
434
},
435
0 commit comments