Skip to content

Commit 3c1c02a

Browse files
author
Ives van Hoorne
committed
Remove event listener check for now
1 parent 61f28c2 commit 3c1c02a

File tree

1 file changed

+1
-12
lines changed
  • packages/codesandbox-api/src/dispatcher

1 file changed

+1
-12
lines changed

packages/codesandbox-api/src/dispatcher/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,7 @@ function notifyFrames(message: Object) {
6868
function eventListener(e: MessageEvent) {
6969
const { data } = e;
7070

71-
const testedHost = host || 'https://codesandbox.io';
72-
const origin = testedHost.replace('https://', '').replace('http://', '');
73-
74-
if (
75-
data.codesandbox &&
76-
(e.origin.endsWith(`.${origin}`) ||
77-
e.origin.endsWith(`/${origin}`) ||
78-
process.env.STAGING ||
79-
process.env.NODE_ENV !== 'production')
80-
) {
81-
notifyListeners(data, e.source);
82-
}
71+
notifyListeners(data, e.source);
8372
}
8473

8574
/**

0 commit comments

Comments
 (0)