electron/spec-main/fixtures/extensions/lazy-background-page/background.js

6 lines
164 B
JavaScript
Raw Normal View History

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