9107157073
* feat: [extensions] support extension.getBackgroundPage * cleanup * how does c++ * tests * test for runtime.getBackgroundPage too
7 lines
276 B
JavaScript
7 lines
276 B
JavaScript
/* global chrome */
|
|
window.completionPromise = new Promise((resolve) => {
|
|
window.completionPromiseResolve = resolve
|
|
})
|
|
chrome.runtime.sendMessage({ some: 'message' }, (response) => {
|
|
window.completionPromiseResolve(chrome.extension.getBackgroundPage().receivedMessage)
|
|
})
|