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

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

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' });
}
});