From 32b64ea6421e898438221af80b0d51c31cb6986b Mon Sep 17 00:00:00 2001 From: quorafind <951011105@qq.com> Date: Tue, 23 Jan 2024 16:47:56 +0800 Subject: [PATCH] chore: bump version --- manifest.json | 2 +- package.json | 2 +- src/floatSearchIndex.ts | 3 ++- versions.json | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 44130be..69bcf86 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "float-search", "name": "Floating Search", - "version": "3.4.7", + "version": "3.4.8", "minAppVersion": "0.15.0", "description": "You can use search view in modal/leaf/popout window now.", "author": "Boninall", diff --git a/package.json b/package.json index e3b6697..3f7942f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "float-search", - "version": "3.4.7", + "version": "3.4.8", "description": "You can use search view in modal/leaf/popout window now.", "main": "main.js", "scripts": { diff --git a/src/floatSearchIndex.ts b/src/floatSearchIndex.ts index 5137a77..c58db40 100644 --- a/src/floatSearchIndex.ts +++ b/src/floatSearchIndex.ts @@ -162,8 +162,9 @@ export default class FloatSearchPlugin extends Plugin { const uninstaller = around(Workspace.prototype, { getLeaf: (next) => function (...args) { - const activeLeaf = this.activeLeaf; + const activeLeaf = (this as Workspace).activeLeaf; if (activeLeaf) { + // @ts-ignore const fsCtnEl = (activeLeaf.parent.containerEl as HTMLElement).parentElement; if (fsCtnEl?.hasClass("fs-content")) { if (activeLeaf.view.getViewType() === "markdown") { diff --git a/versions.json b/versions.json index 82f58ce..360822b 100644 --- a/versions.json +++ b/versions.json @@ -24,5 +24,6 @@ "3.4.4": "0.15.0", "3.4.5": "0.15.0", "3.4.6": "0.15.0", - "3.4.7": "0.15.0" + "3.4.7": "0.15.0", + "3.4.8": "0.15.0" } \ No newline at end of file