electron/spec/fixtures/extensions/host-permissions/privileged-tab-info/main.js
Shelley Vohr f369b144d6
feat: add more extensions manifest key options (#39599)
feat: add more manifest key options
2023-08-28 10:02:22 -04:00

11 lines
293 B
JavaScript

/* global chrome */
chrome.runtime.onMessage.addListener((request, _sender, sendResponse) => {
sendResponse(request);
});
window.addEventListener('message', () => {
chrome.runtime.sendMessage({ method: 'query' }, response => {
console.log(JSON.stringify(response));
});
}, false);