add tabs only in testing
This commit is contained in:
@@ -3,13 +3,8 @@
|
|||||||
"name": "Playwriter MCP",
|
"name": "Playwriter MCP",
|
||||||
"version": "0.0.48",
|
"version": "0.0.48",
|
||||||
"description": "Playwright MCP. 90% less context window. 10x more capable (full playwright API)",
|
"description": "Playwright MCP. 90% less context window. 10x more capable (full playwright API)",
|
||||||
"permissions": [
|
"permissions": ["debugger"],
|
||||||
"debugger",
|
"host_permissions": ["<all_urls>"],
|
||||||
"tabs"
|
|
||||||
],
|
|
||||||
"host_permissions": [
|
|
||||||
"<all_urls>"
|
|
||||||
],
|
|
||||||
"background": {
|
"background": {
|
||||||
"service_worker": "lib/background.mjs",
|
"service_worker": "lib/background.mjs",
|
||||||
"type": "module"
|
"type": "module"
|
||||||
|
|||||||
@@ -27,8 +27,10 @@ export default defineConfig({
|
|||||||
const manifest = JSON.parse(content);
|
const manifest = JSON.parse(content);
|
||||||
|
|
||||||
// Only include tabs permission during testing
|
// Only include tabs permission during testing
|
||||||
if (!process.env.TESTING) {
|
if (process.env.TESTING) {
|
||||||
manifest.permissions = manifest.permissions.filter((p: string) => p !== 'tabs');
|
if (!manifest.permissions.includes('tabs')) {
|
||||||
|
manifest.permissions.push('tabs');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return JSON.stringify(manifest, null, 2);
|
return JSON.stringify(manifest, null, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user