Compare commits
No commits in common. "275f4bdb46a415c7b43cad57a0bf89f95694a4ab" and "bd0f7a7a8c05dc2287e785f15d41994eb9e39261" have entirely different histories.
275f4bdb46
...
bd0f7a7a8c
|
@ -53,10 +53,7 @@ args = ["web-ext", "build", "--config=build/web-ext-${BROWSER}.json"]
|
|||
[tasks.run]
|
||||
clear = true
|
||||
command = "pnpm"
|
||||
# Set --target explicitly, since web-ext for some reason doesn't use the target
|
||||
# set in the configuration file. https://github.com/mozilla/web-ext/issues/1862
|
||||
env = { TARGET = { source = "${BROWSER}", default_value = "${BROWSER}", mapping = { "firefox" = "firefox-dekstop" } } }
|
||||
args = ["web-ext", "run", "--target=${TARGET}", "--config=build/web-ext-${BROWSER}.json"]
|
||||
args = ["web-ext", "run", "--config=build/web-ext-${BROWSER}.json"]
|
||||
|
||||
# Alias for `WATCH=true makers build`.
|
||||
[tasks.watch]
|
||||
|
|
|
@ -19,6 +19,8 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
|
|||
page: "options/index.html",
|
||||
open_in_tab: true,
|
||||
},
|
||||
content_security_policy:
|
||||
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'",
|
||||
content_scripts: [
|
||||
{
|
||||
css: ["css/content-scripts.css"],
|
||||
|
@ -51,8 +53,6 @@ export function createManifest(browser: string): Manifest.WebExtensionManifest {
|
|||
strict_min_version: "102.0",
|
||||
},
|
||||
};
|
||||
manifest.content_security_policy =
|
||||
"script-src 'self'; object-src 'self'; style-src 'unsafe-inline'";
|
||||
} else if (browser === "chromium") {
|
||||
manifest.manifest_version = 3;
|
||||
manifest.action = action;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
.group {
|
||||
border: 1px solid var(--blue);
|
||||
overflow: hidden;
|
||||
overflow: scroll;
|
||||
padding: 16px;
|
||||
|
||||
h2 {
|
||||
|
@ -41,7 +41,7 @@
|
|||
display: flex;
|
||||
gap: 8px;
|
||||
margin-bottom: 16px;
|
||||
overflow: auto;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
input {
|
||||
|
|
|
@ -19,7 +19,6 @@ type WebExtConfig = {
|
|||
|
||||
run: {
|
||||
browserConsole: boolean;
|
||||
chromiumProfile: string;
|
||||
firefoxProfile: string;
|
||||
keepProfileChanges: boolean;
|
||||
profileCreateIfMissing: boolean;
|
||||
|
@ -54,7 +53,6 @@ export function createWebExtConfig(
|
|||
|
||||
run: {
|
||||
browserConsole: dev,
|
||||
chromiumProfile: path.join(buildDir, "chromium-profile/"),
|
||||
firefoxProfile: path.join(buildDir, "firefox-profile/"),
|
||||
keepProfileChanges: true,
|
||||
profileCreateIfMissing: true,
|
||||
|
|
Loading…
Reference in New Issue