trilium/apps/web-clipper/entrypoints/background
Elian Doran e4877e46f2
fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21
wxt 0.21 enables verbatimModuleSyntax and noUncheckedIndexedAccess in
the generated .wxt/tsconfig.json (wxt-dev/wxt#2512), which also made
the rolldown-based build reject the type-as-value Rect import.

- import Rect with an inline type specifier
- getActiveTab() now throws instead of returning a possibly-undefined
  tabs[0]
- narrow indexed accesses in absoluteUrl(), pageTitle() and the
  protocol version parsing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 19:30:23 +03:00
..
context_menu.ts fix(web-clipper): context menu got broken on Firefox 2026-01-26 21:00:56 +02:00
index.ts fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21 2026-07-30 19:30:23 +03:00
trilium_server_facade.ts fix(web-clipper): satisfy stricter tsconfig generated by wxt 0.21 2026-07-30 19:30:23 +03:00