Open soniAnkur opened 1 year ago
Hi, I am getting following error when raising 'test' event.
On sender
const parent = window.opener; postRobot.send(parent, 'test', someRandomJSON, { timeout: 5000 }).then((event) => { output.innerText = `Got async response from parent:, ${JSON.stringify(event.data, null, 4)}` }).catch(error => { console.log(error); });
on receiver
postRobot.on('test', (event) => { return fetch('https://jsonplaceholder.typicode.com/posts/1') .then(response => response.json()) .then(json => { return json; }) });
Could someone help me with whats causing the issue/how to fix
thanks
Hi, I am getting following error when raising 'test' event.
On sender
on receiver
Could someone help me with whats causing the issue/how to fix
thanks