merge #357: read betterSidebar via ctx.get() in all consumers (LuckVd)

This commit is contained in:
HuanLinOTO committed 2026-08-24 01:35:00 +08:00
commit df489ccb45
10 files changed
+44 -34

No files matched your search

+1 -1
View File
@@ -363,7 +363,7 @@ export function apply(ctx: Context): void {
let title: string | undefined
try { title = new URL(url).hostname } catch { /* keep the default title */ }
const type = urlTargetOf(new URL(url)) ?? 'browser'
ctx.betterSidebar?.openTab({ type, url, title })
ctx.get('betterSidebar')?.openTab({ type, url, title })
},
selfOrigin: window.location.origin,
})