We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1e92c commit 0ecd298Copy full SHA for 0ecd298
2 files changed
app/middlewares/debuggerAPI.js
@@ -66,7 +66,11 @@ const onWindowMessage = e => {
66
const { data } = e;
67
if (data && data.source === APOLLO_PROXY) {
68
const message = typeof data.payload === 'string' ? { event: data.payload } : data.payload;
69
- worker.postMessage({ source: APOLLO_PROXY, ...message });
+ worker.postMessage({
70
+ method: 'emitApolloMessage',
71
+ source: APOLLO_PROXY,
72
+ ...message,
73
+ });
74
}
75
};
76
app/worker/index.js
@@ -82,6 +82,10 @@ const messageHandlers = {
82
// pass to other listeners
83
return true;
84
},
85
+ emitApolloMessage() {
86
+ // pass to other listeners
87
+ return true;
88
+ },
89
invokeDevMenuMethod({ name, args }) {
90
invokeDevMenuMethodIfAvailable(name, args);
91
return false;
0 commit comments