mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix(plugin): types
This commit is contained in:
@@ -185,7 +185,13 @@ export function setupInjectedUI (
|
||||
attrs: Record<string, any>
|
||||
) {
|
||||
const pl = this
|
||||
const selector = ui.path || `#${ui.slot}`
|
||||
let selector = ''
|
||||
|
||||
if ('slot' in ui) {
|
||||
selector = `#${ui.slot}`
|
||||
} else {
|
||||
selector = ui.path
|
||||
}
|
||||
|
||||
const target = selector && document.querySelector(selector)
|
||||
if (!target) {
|
||||
|
||||
Reference in New Issue
Block a user