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
317 B
JavaScript
Raw Normal View History

/* eslint-disable no-undef */
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);
});