mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-12 22:57:10 +00:00
Add extension id for firefox
This commit is contained in:
parent
2d2916975c
commit
59953b5fcf
1 changed files with 9 additions and 2 deletions
|
@ -20,8 +20,15 @@ local optional_host_permissions = ['file:///*'];
|
|||
local json = if std.member(['chrome', 'edge'], browser) then
|
||||
manifest_v3.new(name, keyword, description, version, service_worker='service-worker.js')
|
||||
else
|
||||
# Firefox does not support service worker yet.
|
||||
manifest_v3.new(name, keyword, description, version, background_page='firefox-bg.html')
|
||||
// Firefox does not support service worker yet.
|
||||
manifest_v3.new(name, keyword, description, version, background_page='firefox-bg.html') { browser_specific_settings: {
|
||||
// Firefox need extension id to be set in the manifest.
|
||||
// https://extensionworkshop.com/documentation/develop/extensions-and-the-add-on-id/
|
||||
gecko: {
|
||||
id: '{04188724-64d3-497b-a4fd-7caffe6eab29}',
|
||||
strict_min_version: '109.0',
|
||||
},
|
||||
} }
|
||||
;
|
||||
|
||||
json
|
||||
|
|
Loading…
Reference in a new issue