Skip to content

Commit

Permalink
fix: update iframe postMessage origin
Browse files Browse the repository at this point in the history
  • Loading branch information
renet committed May 13, 2022
1 parent 5cb14b8 commit 5b4e63a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/docs/components/docs-iframe/docs-iframe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export class DocsIFrame {
updateDarkMode(darkMode: boolean) {
if (!this.loaded) return

this.iframe.contentWindow.postMessage(
{ mode: 'updateDarkmode', darkMode: darkMode },
this.src
)
this.iframe.contentWindow.postMessage({
mode: 'updateDarkmode',
darkMode: darkMode,
})
}

componentDidLoad() {
Expand Down

0 comments on commit 5b4e63a

Please sign in to comment.