Skip to content

Commit

Permalink
Update manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed May 27, 2024
1 parent 55d0057 commit 00bd872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core
7 changes: 2 additions & 5 deletions manifest.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ local host_permissions = ['*://crates.io/api/v1/crates/*', 'https://rust.extensi
local optional_host_permissions = ['file:///*'];
local json = if std.member(['chrome', 'edge'], browser) then
local manifest_v3 = import 'core/manifest_v3.libsonnet';
manifest_v3.new(name, keyword, description, version, service_worker='service-worker.js')
manifest_v3.new(name, keyword, description, version, service_worker='service-worker.js', module_type=true)
.addWebAccessibleResources(
resources=utils.js_files('script', ['lib', 'add-search-index']),
matches=['*://docs.rs/*', '*://doc.rust-lang.org/*'],
).addWebAccessibleResources(
resources=['wasm/*.wasm', 'assets/*.svg'],
resources=['script/*.js', 'wasm/*.wasm', 'assets/*.svg'],
matches=[
'*://docs.rs/*',
'*://doc.rust-lang.org/*',
Expand Down

0 comments on commit 00bd872

Please sign in to comment.