merge #357: read betterSidebar via ctx.get() in all consumers (LuckVd)
This commit is contained in:
commit
df489ccb45
10 files changed
+44
-34
No files matched your search
@@ -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,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user