rust-search-extension/extension/service-worker.js
Folyd 5f8a35ebe8
Prepare migrate to Manifest V3 (#179), fixes #142
* Prepare migrate to Manifest V3

* Add `matches` declaration for `web_accessible_resources`

* Support both Manifest V2 and V3

* Only call migrate() when manifest is v2
2022-07-15 00:41:48 +08:00

41 lines
970 B
JavaScript

importScripts(
'core/compat.js',
'core/omnibox.js',
'core/query-event.js',
'core/storage.js',
'core/command/base.js',
'core/command/history.js',
'core/command/manager.js',
'core/command/open.js',
'core/command/simple.js',
"command/blog.js",
"command/help.js",
"command/label.js",
"command/rfc.js",
"command/stable.js",
"index/attributes.js",
"index/books.js",
"index/caniuse.js",
"index/commands.js",
"index/crates.js",
"index/std-docs.js",
"index/labels.js",
"index/lints.js",
"index/rfcs.js",
"search/docs/base.js",
"search/docs/crate-doc.js",
"search/docs/rustc.js",
"search/algorithm.js",
"search/attribute.js",
"search/book.js",
"search/caniuse.js",
"search/crate.js",
"search/lint.js",
"crate-manager.js",
"deminifier.js",
"index-manager.js",
"rust-version.js",
"settings.js",
"statistics.js",
'main.js',
);