worker.js
The service worker to execute since the browser startup and handle events until the browser is closed or extension is disabled or removed. Learn more here.
app/worker.js
import browser from 'webextension-polyfill'; browser.runtime.onInstalled.addListener(() => { browser.tabs.create({ url: 'https://example.com/welcome.html' }); });