-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Privacy Policy, and fixes to extension manifest (#6)
- Loading branch information
Showing
2 changed files
with
17 additions
and
6 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,8 @@ | ||
/** | ||
* Build a manifest file targetting Chromium/Webkit or Gecko-based browsers. | ||
* Build a manifest file, targetting Chromium/Webkit or Gecko-based browsers. | ||
* | ||
* @copyright © Nick Freear, 19-Aug-2024. | ||
* | ||
* © NDF, 19-Aug-2024. | ||
* @see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json | ||
*/ | ||
|
||
|
@@ -14,16 +15,21 @@ const IS_GECKO = process.env.UA === 'gecko'; | |
|
||
const FILE_PATH = resolve(__dirname, '..', 'manifest.json'); | ||
const SERVICE_WORKER = 'lib/service-worker.js'; | ||
const AUTHOR_NAME = 'Nick Freear'; | ||
// const BACKGROUND_PAGE = 'pages/background.html'; | ||
|
||
const TEMPLATE = { | ||
manifest_version: 3, | ||
|
||
name: 'My Pomodoro', | ||
short_name: 'My Pomodoro', | ||
name: 'My Pomodoro: work, relax, focus', | ||
version: '1.0', | ||
|
||
description: 'A Pomodoro countdown timer that helps you focus by blocking access to distracting websites.', | ||
homepage_url: 'https://github.com/nfreear/pomodoro-chrome-ext#readme', | ||
author: { | ||
email: '[email protected]' | ||
}, | ||
|
||
icons: { | ||
128: 'assets/icon-128.png' | ||
|
@@ -66,6 +72,7 @@ const TEMPLATE = { | |
{ | ||
matches: ['https://*/*'], | ||
resources: [ | ||
'assets/app-icons.svg', | ||
'assets/content-style.css', | ||
// 'assets/evergreen_tree.svg', | ||
// 'assets/emoji.svg', | ||
|
@@ -90,6 +97,8 @@ const MANIFEST = IS_GECKO ? { ...TEMPLATE, ...GECKO } : TEMPLATE; | |
if (IS_GECKO) { | ||
// MANIFEST.background.page = BACKGROUND_PAGE; | ||
MANIFEST.background.scripts = [SERVICE_WORKER]; | ||
|
||
MANIFEST.author = AUTHOR_NAME; | ||
} else { | ||
// Chromium-specific. | ||
MANIFEST.background.service_worker = SERVICE_WORKER; | ||
|
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