CI / Build & Test (push) Successful in 3m22s
Firefox MV3 does not support background.service_worker. Split background into background-boot.js (globals) and background-main.js (startup logic); Chrome keeps using importScripts() in background.js, Firefox manifest uses background.scripts with the same file list so the extension loads in both.
15 lines
397 B
JavaScript
15 lines
397 B
JavaScript
/**
|
|
* Background service worker entry point (Chrome).
|
|
* Loads boot globals, then modules, then main logic via importScripts().
|
|
*/
|
|
importScripts(
|
|
'background/background-boot.js',
|
|
'background/logs.js',
|
|
'background/state.js',
|
|
'background/proxy.js',
|
|
'background/native-messaging.js',
|
|
'background/tab-lifecycle.js',
|
|
'background/message-router.js',
|
|
'background/background-main.js'
|
|
);
|