electron/spec/fixtures/extensions/mv3-service-worker/background.js

7 lines
205 B
JavaScript

/* global chrome */
chrome.runtime.onMessage.addListener((message, _sender, sendResponse) => {
if (message === 'fetch-confirmation') {
sendResponse({ message: 'Hello from background.js' });
}
});