message-channel-promise
Advanced tools
Comparing version
@@ -82,3 +82,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
if (target === self || target instanceof Worker || target instanceof MessagePort) { | ||
if (isWorker || target instanceof Worker || target instanceof MessagePort) { | ||
target.postMessage(message, [port2].concat(_toConsumableArray(transfer))); | ||
@@ -85,0 +85,0 @@ } else { |
{ | ||
"name": "message-channel-promise", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Promise wrapper for communication via post message and MesssageChannel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -30,3 +30,3 @@ # message-channel-promise | ||
const message = {/* ... */}; | ||
sendChannelMessage(message, frame.contentWindow, '*') | ||
sendChannelMessage(message, frame.contentWindow, {targetOrigin: '*'}) | ||
.then(function(data) { | ||
@@ -33,0 +33,0 @@ // Do something with the response |
Sorry, the diff of this file is not supported yet
11510
-0.09%