feat: [extensions] support extension.getBackgroundPage (#21951)

* feat: [extensions] support extension.getBackgroundPage

* cleanup

* how does c++

* tests

* test for runtime.getBackgroundPage too
This commit is contained in:
Jeremy Apthorp 2020-02-06 13:42:34 -08:00 committed by GitHub
parent eca1dd7f8b
commit 9107157073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 217 additions and 23 deletions

View file

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