1
Fork 0

Move CSP to Firefox only.

This commit is contained in:
Bauke 2023-06-24 22:38:01 +02:00
parent bd0f7a7a8c
commit 8adbee70e9
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,6 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
page: "options/index.html", page: "options/index.html",
open_in_tab: true, open_in_tab: true,
}, },
content_security_policy:
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'",
content_scripts: [ content_scripts: [
{ {
css: ["css/content-scripts.css"], css: ["css/content-scripts.css"],
@ -53,6 +51,8 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
strict_min_version: "102.0", strict_min_version: "102.0",
}, },
}; };
manifest.content_security_policy =
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'";
} else if (browser === "chromium") { } else if (browser === "chromium") {
manifest.manifest_version = 3; manifest.manifest_version = 3;
manifest.action = action; manifest.action = action;