fixed build window issue:
This commit is contained in:
parent
2a2ddf205a
commit
1d95da7a3a
3 changed files with 8 additions and 4 deletions
|
|
@ -2,9 +2,7 @@ import { useRef } from 'react';
|
|||
|
||||
export function UdelFrame({ onEvaluate, hash, instance }) {
|
||||
const ref = useRef();
|
||||
console.info('frame')
|
||||
window.addEventListener('message', (message) => {
|
||||
console.info(message, 'message')
|
||||
const childWindow = ref?.current?.contentWindow;
|
||||
if (message == null || message.source !== childWindow) {
|
||||
return; // Skip message in this event listener
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue