Fix Bug 46235.

Fix rev. c13d0dc8e9
This commit is contained in:
Julia Radzhabova 2020-08-19 14:16:03 +03:00
parent ce7e5eb5a4
commit d5e0c18629

View file

@ -135,7 +135,7 @@ if (Common === undefined) {
var _onMessage = function(msg) {
// TODO: check message origin
if (msg.origin !== window.parentOrigin) return;
if (msg.origin !== window.parentOrigin && msg.origin !== window.location.origin) return;
var data = msg.data;
if (Object.prototype.toString.apply(data) !== '[object String]' || !window.JSON) {