Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 5f499db

Browse files
author
Daniel Brain
committed
Remove redundant origin check for mock://
1 parent 38cc826 commit 5f499db

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/drivers/receive/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { CONFIG, CONSTANTS, POST_MESSAGE_NAMES_LIST } from '../../conf';
3-
import { getWindowById, registerWindow, deserializeMethods, log, getOpener, getParent, getWindowId, isWindowClosed, isSameDomain, util } from '../../lib';
3+
import { getWindowById, registerWindow, deserializeMethods, log, getOpener, getParent, getWindowId, isWindowClosed, isSameDomain } from '../../lib';
44
import { emulateIERestrictions, registerBridge } from '../../compat';
55
import { global } from '../../global';
66

@@ -86,10 +86,6 @@ export function receiveMessage(event) {
8686

8787
let { source, origin, data } = event;
8888

89-
if (isSameDomain(source)) {
90-
origin = util.getDomain(source);
91-
}
92-
9389
let message = parseMessage(data);
9490

9591
if (!message) {

0 commit comments

Comments
 (0)