Skip to content

Commit 3481313

Browse files
authored
feat: automatically disable 'Show warning about Self-XSS when pasing code' in new chrome (#1159)
1 parent 2f23556 commit 3481313

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/wxt/src/core/runners/web-ext.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ export function createWebExtRunner(): ExtensionRunner {
5050
wxtUserConfig?.chromiumPref,
5151
DEFAULT_CHROMIUM_PREFS,
5252
),
53-
args: wxtUserConfig?.chromiumArgs,
53+
args: [
54+
'--unsafely-disable-devtools-self-xss-warnings',
55+
...(wxtUserConfig?.chromiumArgs ?? []),
56+
],
5457
}),
5558
};
5659

0 commit comments

Comments
 (0)