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

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

7 lines
307 B
JavaScript
Raw Normal View History

/* global chrome */
chrome.runtime.sendMessage({ some: 'message' }, (response) => {
const script = document.createElement('script');
script.textContent = `require('electron').ipcRenderer.send('bg-page-message-response', ${JSON.stringify(response)})`;
document.documentElement.appendChild(script);
});