feat: add advanced context actions and optional translation

This commit is contained in:
golem
2026-10-05 15:38:16 -06:00
parent 33c4dad00f
commit 5308932bf1
34 changed files with 1579 additions and 159 deletions
+9
View File
@@ -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' });
}