2 Commits

Author SHA1 Message Date
Yury Semikhatsky
0f7fd1362f chore: mark 0.0.12 (#176) 2025-04-14 19:39:10 -07:00
Yury Semikhatsky
de08c24b96 fix: consider DISPLAY only on linux (#175) 2025-04-14 19:07:39 -07:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@playwright/mcp", "name": "@playwright/mcp",
"version": "0.0.11", "version": "0.0.12",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@playwright/mcp", "name": "@playwright/mcp",
"version": "0.0.11", "version": "0.0.12",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@modelcontextprotocol/sdk": "^1.6.1", "@modelcontextprotocol/sdk": "^1.6.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@playwright/mcp", "name": "@playwright/mcp",
"version": "0.0.11", "version": "0.0.12",
"description": "Playwright Tools for MCP", "description": "Playwright Tools for MCP",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@@ -74,7 +74,7 @@ program
} }
const launchOptions: LaunchOptions = { const launchOptions: LaunchOptions = {
headless: options.headless ?? !process.env.DISPLAY, headless: !!(options.headless ?? (os.platform() === 'linux' && !process.env.DISPLAY)),
channel, channel,
executablePath: options.executablePath, executablePath: options.executablePath,
}; };