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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
280 B
JavaScript
Raw Normal View History

/* global chrome */
window.completionPromise = new Promise((resolve) => {
window.completionPromiseResolve = resolve;
});
chrome.runtime.sendMessage({ some: 'message' }, (response) => {
window.completionPromiseResolve(chrome.extension.getBackgroundPage().receivedMessage);
});