remove the --profile flag on windows open and add opening a new window with a url

This commit is contained in:
2026-04-10 13:06:53 +02:00
parent 61b774a7a4
commit 362b53a384
8 changed files with 40 additions and 14 deletions
+4 -4
View File
@@ -545,10 +545,10 @@ async function windowsClose({ windowId }) {
return { windowId };
}
async function windowsOpen({ profile }) {
// profile support requires launching Chrome with --profile-directory which
// isn't possible from within an extension — we open a plain new window.
const w = await chrome.windows.create({ focused: true });
async function windowsOpen({ url }) {
const createData = { focused: true };
if (url) createData.url = url;
const w = await chrome.windows.create(createData);
return { id: w.id };
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "browser-cli",
"version": "0.5.4",
"version": "0.5.5",
"description": "Control your browser from the terminal via browser-cli",
"permissions": [
"tabs",