electron/spec-main/fixtures/extensions/lazy-background-page/background.js
Jeremy Apthorp 9107157073
feat: [extensions] support extension.getBackgroundPage (#21951)
* feat: [extensions] support extension.getBackgroundPage

* cleanup

* how does c++

* tests

* test for runtime.getBackgroundPage too
2020-02-06 16:42:34 -05:00

5 lines
164 B
JavaScript

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