-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Manifest for compatibility with Firefox
- Loading branch information
1 parent
138cae2
commit 00b7c15
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"manifest_version": 3, | ||
"name": "__MSG_extensionName__", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "__MSG_extensionDescription__", | ||
"icons": { | ||
"48": "icons/48.png", | ||
|
@@ -26,5 +26,10 @@ | |
"default_icon": "icons/96.png", | ||
"default_title": "__MSG_extensionName__", | ||
"default_popup": "src/popup/index.html" | ||
}, | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { readFile, writeFile } from 'fs/promises'; | ||
|
||
const path = './dist/manifest.json'; | ||
const manifest = JSON.parse(await readFile(path, 'utf-8')); | ||
manifest.background.scripts = [manifest.background.service_worker]; | ||
manifest.background.persistent = true; | ||
await writeFile(path, JSON.stringify(manifest)); |