From 4d752718c4cd2cc9e7c665d3ed864655e96babc6 Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Thu, 20 Apr 2017 19:42:17 -0700 Subject: [PATCH] Return bridge promise so error is correctly handled --- src/drivers/send/strategies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/send/strategies.js b/src/drivers/send/strategies.js index 7336c2e3..d8b4e8b3 100644 --- a/src/drivers/send/strategies.js +++ b/src/drivers/send/strategies.js @@ -68,7 +68,7 @@ if (__IE_POPUP_SUPPORT__) { throw new Error(`Can only use bridge to communicate between two different windows, not between frames`); } - sendBridgeMessage(win, serializedMessage, domain); + return sendBridgeMessage(win, serializedMessage, domain); }; SEND_MESSAGE_STRATEGIES[CONSTANTS.SEND_STRATEGIES.GLOBAL] = (win, serializedMessage, domain) => {