-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsw.js
31 lines (29 loc) · 1.36 KB
/
sw.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* :::::::: */
/* sw.js :+: :+: */
/* +:+ */
/* By: fbes <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/03/26 23:58:26 by fbes #+# #+# */
/* Updated: 2022/03/26 23:58:26 by fbes ######## odam.nl */
/* */
/* ************************************************************************** */
// This is a wrapper for the lack of multiple background scripts in Google's
// extension manifest V3. Just use a "service worker" and import all the
// neccessary background scripts here.
// Sadly it does need to be in the root folder of the extension.
try {
importScripts(
"generic/console.js",
"background/main.js",
"generic/lib/storage.js",
"generic/lib/network.js",
"background/comm.js",
"background/options.js",
"background/omnibox.js"
);
}
catch (err) {
iConsole.error(err);
}