feat: add advanced context actions and optional translation
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export async function openChat(browser, url, openIn) {
|
||||
if (openIn === 'new-window') {
|
||||
try {
|
||||
await browser.windows.create({ url });
|
||||
return;
|
||||
} catch { /* Fall back to a tab. */ }
|
||||
}
|
||||
await browser.tabs.create({ url, active: openIn !== 'background-tab' });
|
||||
}
|
||||
Reference in New Issue
Block a user