We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f28c2 commit 3c1c02aCopy full SHA for 3c1c02a
packages/codesandbox-api/src/dispatcher/index.ts
@@ -68,18 +68,7 @@ function notifyFrames(message: Object) {
68
function eventListener(e: MessageEvent) {
69
const { data } = e;
70
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
- }
+ notifyListeners(data, e.source);
83
}
84
85
/**
0 commit comments