You've already forked hotpocket
BTHLABS-51: Chrome Web Extension
Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl> Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
6
services/extension/src/background/chrome.js
Normal file
6
services/extension/src/background/chrome.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import main from './main';
|
||||
|
||||
main({
|
||||
platform: 'Chrome',
|
||||
api: chrome,
|
||||
});
|
||||
6
services/extension/src/content/chrome.js
Normal file
6
services/extension/src/content/chrome.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import main from './main';
|
||||
|
||||
main({
|
||||
platform: 'Chrome',
|
||||
api: window.chrome,
|
||||
});
|
||||
13
services/extension/src/manifest/chrome.json
Normal file
13
services/extension/src/manifest/chrome.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"action": {
|
||||
"default_title": "__MSG_extension_name__",
|
||||
"default_icon": {
|
||||
"16": "images/toolbar-icon-16.png",
|
||||
"32": "images/toolbar-icon-32.png"
|
||||
}
|
||||
},
|
||||
"background": {
|
||||
"service_worker": "background-bundle.js",
|
||||
"type": "module"
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@
|
||||
"description": "__MSG_extension_description__",
|
||||
"version": "25.9.12",
|
||||
"icons": {
|
||||
"16": "images/icon-16.png",
|
||||
"32": "images/icon-32.png",
|
||||
"48": "images/icon-48.png",
|
||||
"64": "images/icon-64.png",
|
||||
"96": "images/icon-96.png",
|
||||
@@ -22,10 +24,6 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"action": {
|
||||
"default_title": "__MSG_extension_name__",
|
||||
"default_icon": "images/toolbar-icon.svg"
|
||||
},
|
||||
"permissions": [
|
||||
"storage",
|
||||
"activeTab",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "__MSG_extension_description_Safari__",
|
||||
"action": {
|
||||
"default_title": "__MSG_extension_name__",
|
||||
"default_icon": "images/toolbar-icon.svg"
|
||||
},
|
||||
"background": {
|
||||
"scripts": [
|
||||
"background-bundle.js"
|
||||
|
||||
Reference in New Issue
Block a user