Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit ec7aa55

Browse files
committed
chore: change permissions in manifest
1 parent 4ec1b60 commit ec7aa55

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/manifest.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
22
"name": "A Translator",
3-
"permissions": [
4-
"https://a-translator-api.nerdynerd.org/*",
5-
"https://a-translator-api-cf.nerdynerd.org/*",
6-
"storage",
7-
"tabs"
8-
],
3+
"permissions": ["http://*/*", "https://*/*", "storage", "tabs"],
94
"options_ui": {
105
"page": "options.html",
116
"chrome_style": false,

webpack.config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,12 @@ const options = {
117117
force: true,
118118
transform: function (content) {
119119
const manifest = JSON.parse(content.toString())
120-
const { permissions } = manifest
121120

122-
if (env.NODE_ENV !== 'production') {
123-
permissions.push('http://localhost:1337/*')
124-
}
125-
126-
// generates the manifest file using the package.json informations
121+
// generates the manifest file using the package.json information
127122
return Buffer.from(
128123
JSON.stringify(
129124
{
130125
...manifest,
131-
permissions,
132126
description: process.env.npm_package_description,
133127
version: process.env.npm_package_version,
134128
},

0 commit comments

Comments
 (0)