remove the --profile flag on windows open and add opening a new window with a url
This commit is contained in:
@@ -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,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",
|
||||
|
||||
Reference in New Issue
Block a user