From 59953b5fcf7ac932185ee5932fb22fb980b7f29e Mon Sep 17 00:00:00 2001 From: Folyd Date: Wed, 16 Oct 2024 15:08:00 +0800 Subject: [PATCH] Add extension id for firefox --- manifest.jsonnet | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/manifest.jsonnet b/manifest.jsonnet index 47e99e06..e5a6dbd8 100644 --- a/manifest.jsonnet +++ b/manifest.jsonnet @@ -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