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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user