diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/data/manifest-variants.json | 38 | ||||
-rw-r--r-- | dev/translator-vm.js | 4 |
2 files changed, 37 insertions, 5 deletions
diff --git a/dev/data/manifest-variants.json b/dev/data/manifest-variants.json index 26d91d26..07c98b91 100644 --- a/dev/data/manifest-variants.json +++ b/dev/data/manifest-variants.json @@ -80,9 +80,9 @@ "storage", "clipboardWrite", "unlimitedStorage", - "webRequest", "declarativeNetRequest", - "scripting" + "scripting", + "offscreen" ], "optional_permissions": [ "clipboardRead", @@ -228,7 +228,7 @@ "value": { "gecko": { "id": "{cb7c0bec-7085-4f84-8422-7b55a7c4467c}", - "strict_min_version": "102.0" + "strict_min_version": "115.0" } } }, @@ -249,11 +249,36 @@ ] }, { + "action": "add", + "path": [ + "permissions" + ], + "items": [ + "webRequest" + ] + }, + { + "action": "add", + "path": [ + "permissions" + ], + "items": [ + "webRequestBlocking" + ] + }, + { "action": "remove", "path": [ "permissions" ], "item": "declarativeNetRequest" + }, + { + "action": "remove", + "path": [ + "permissions" + ], + "item": "offscreen" } ], "excludeFiles": [ @@ -329,6 +354,13 @@ "item": "webRequestBlocking" }, { + "action": "remove", + "path": [ + "permissions" + ], + "item": "offscreen" + }, + { "action": "delete", "path": [ "content_scripts", diff --git a/dev/translator-vm.js b/dev/translator-vm.js index e3b700ff..2a51ab8c 100644 --- a/dev/translator-vm.js +++ b/dev/translator-vm.js @@ -95,8 +95,8 @@ class TranslatorVM extends DatabaseVM { japaneseUtil: this._japaneseUtil, database: dictionaryDatabase }); - const deinflectionReasions = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json'))); - this._translator.prepare(deinflectionReasions); + const deinflectionReasons = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'ext', 'data/deinflect.json'))); + this._translator.prepare(deinflectionReasons); // Assign properties this._ankiNoteDataCreator = new AnkiNoteDataCreator(this._japaneseUtil); |