Skip to content

Commit

Permalink
Set up global receive before sending any messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Brain committed Feb 14, 2019
1 parent 5e24df6 commit e6dc37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ export function setup() {
if (!getGlobal().initialized) {
getGlobal().initialized = true;

setupGlobalReceiveMessage({ on, send });
listenForMessages({ on, send });

if (__POST_ROBOT__.__IE_POPUP_SUPPORT__) {
setupBridge({ on, send, receiveMessage });
}

initHello({ on, send });
setupGlobalReceiveMessage({ on, send });
}
}

0 comments on commit e6dc37b

Please # to comment.