@cicada/message
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -67,3 +67,3 @@ 'use strict'; | ||
} | ||
if (toParent || isIframe()) { | ||
if (toParent !== undefined ? toParent : isIframe()) { | ||
window.parent.postMessage(messagePrefix + message, '*'); | ||
@@ -70,0 +70,0 @@ } else { |
{ | ||
"name": "@cicada/message", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "cicada message", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -47,3 +47,3 @@ export function isIframe() { | ||
} | ||
if (toParent || isIframe()) { | ||
if (toParent !== undefined ? toParent : isIframe()) { | ||
window.parent.postMessage(messagePrefix + message, '*') | ||
@@ -50,0 +50,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8258
12