Skip to content

Commit

Permalink
Load the plugin system only for the github code, not for the releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Oct 11, 2024
1 parent dba1a98 commit f775e06
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
26 changes: 5 additions & 21 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
"name": "Amazon Vine Helper",
"description": "Improve the Amazon Vine experience.",
"version": "2.10.4",
"permissions": [
"alarms",
"storage",
"tabs",
"notifications",
"scripting",
"debugger"
],
"permissions": ["alarms", "storage", "tabs", "notifications", "scripting", "debugger"],
"content_security_policy": {
"extension_pages": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; connect-src 'self' https://api.vinehelper.ovh http://127.0.0.1:3000 ws://127.0.0.1:3000 wss://api.vinehelper.ovh https://*.media-amazon.com https://api.llamastories.com; img-src 'self' https://*.media-amazon.com https://*.paypal.com https://*.paypalobjects.com;"
},
Expand Down Expand Up @@ -72,12 +65,9 @@
}
],
"background": {
"service_worker": "scripts/vh_service_worker.js",
"service_worker": "scripts/vh_service_worker_with_plugins.js",
"type": "module",
"scripts": [
"node_modules/socket.io/client-dist/socket.io.min.js",
"scripts/vh_service_worker.js"
]
"scripts": ["node_modules/socket.io/client-dist/socket.io.min.js", "scripts/vh_service_worker.js"]
},
"content_scripts": [
{
Expand Down Expand Up @@ -137,14 +127,8 @@
"run_at": "document_start"
},
{
"css": [
"resource/css/vinehelper.css",
"resource/css/main.css"
],
"js": [
"scripts/Template.js",
"scripts/review.js"
],
"css": ["resource/css/vinehelper.css", "resource/css/main.css"],
"js": ["scripts/Template.js", "scripts/review.js"],
"matches": [
"*://*.amazon.ca/review/*",
"*://*.amazon.it/review/*",
Expand Down
5 changes: 5 additions & 0 deletions scripts/vh_service_worker_with_plugins.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//Load the regular service worker
import "./vh_service_worker.js";

//Plugin line must be commented for official releases:
import "../plugins/_pluginsInit.js";

0 comments on commit f775e06

Please sign in to comment.