Skip to content

Commit

Permalink
send a iframe ready event to parent
Browse files Browse the repository at this point in the history
  • Loading branch information
anyuanzheng committed Apr 18, 2024
1 parent bcda98e commit f135aaa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/app/features/dashboard/dashgrid/DashboardGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export class DashboardGrid extends PureComponent<Props, State> {
}

this.eventSubs.add(dashboard.events.subscribe(DashboardPanelsChangedEvent, this.triggerForceUpdate));

window.parent.postMessage({ type: 'iframe-ready' }, '*');
}

componentWillUnmount() {
Expand Down

0 comments on commit f135aaa

Please sign in to comment.