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

8 lines
205 B
JavaScript
Raw Normal View History

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