fix capture

This commit is contained in:
2026-09-25 15:04:09 -07:00
parent f8bd5fce32
commit 41f5aa19a3
5 changed files with 19 additions and 16 deletions

View File

@@ -45,7 +45,7 @@
try {
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
if (!tabs.length || tabs[0].id == null) return;
const ctx = await browser.tabs.sendMessage(tabs[0].id, { kind: 'get_context' });
const ctx = await browser.tabs.sendMessage(tabs[0].id, { kind: 'get_context' }, { frameId: 0 });
if (ctx && ctx.selection && !noteEl.value) {
noteEl.value = ctx.selection;
}