From e6dc37bca53e272cdf535cab047e0a8b38b25595 Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Wed, 13 Feb 2019 18:23:25 -0800 Subject: [PATCH] Set up global receive before sending any messages --- src/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.js b/src/setup.js index c20747e1..c2559e4e 100644 --- a/src/setup.js +++ b/src/setup.js @@ -25,6 +25,7 @@ export function setup() { if (!getGlobal().initialized) { getGlobal().initialized = true; + setupGlobalReceiveMessage({ on, send }); listenForMessages({ on, send }); if (__POST_ROBOT__.__IE_POPUP_SUPPORT__) { @@ -32,6 +33,5 @@ export function setup() { } initHello({ on, send }); - setupGlobalReceiveMessage({ on, send }); } }