Supex Text LogoSupex Logo Mark

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.

Vanilla JSapp/worker.js

import browser from 'webextension-polyfill';

browser.runtime.onInstalled.addListener(() => {
  browser.tabs.create({ url: 'https://example.com/welcome.html' });
});