Skip to content

Commit

Permalink
feat: postmessage
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Jul 21, 2024
1 parent f38cf5a commit 089cec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/postmessage/myIframe/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react'

const MyIFrame = () => {
const parentOrigin = 'http://localhost:8080'
const parentOrigin = process.env.IFRAME_ORIGIN
const [message, setMessage] = useState() // string | undefined

const onReceivedMessage = (event) => {
Expand Down

0 comments on commit 089cec7

Please sign in to comment.