Skip to content

Commit

Permalink
chore: fix typo in monaco iframe (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Jul 1, 2021
1 parent 1b0a6cf commit 4001c5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client/iframes/monaco/index.ts
Expand Up @@ -129,12 +129,12 @@ async function start() {
update()
}

window.addEventListener('message', (playload) => {
if (playload.source === window)
window.addEventListener('message', (payload) => {
if (payload.source === window)
return
if (typeof playload.data !== 'string')
if (typeof payload.data !== 'string')
return
const { type, data } = JSON.parse(playload.data)
const { type, data } = JSON.parse(payload.data)
if (type === 'slidev-monaco') {
Object.assign(props, data)
update()
Expand Down

0 comments on commit 4001c5e

Please sign in to comment.