electron/spec-main/fixtures/extensions/lazy-background-page/background.js
2020-03-20 13:28:31 -07:00

5 lines
167 B
JavaScript

/* eslint-disable no-undef */
chrome.runtime.onMessage.addListener((message, sender, reply) => {
window.receivedMessage = message;
reply({ message, sender });
});