Skip to content

Commit 7b5f1a6

Browse files
committed
fix demo app
1 parent 7fb98a0 commit 7b5f1a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/App.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ const App = () => {
1010

1111
useEffect(() => {
1212
const handler = (event) => {
13-
if (event.data?.type !== "PARENT_WINDOW_QUERY") {
13+
if (
14+
event.origin === "https://support.retool.com" &&
15+
event.data?.type !== "PARENT_WINDOW_QUERY"
16+
) {
1417
setRetoolData(event.data);
1518
}
1619
};

0 commit comments

Comments
 (0)