Fix plugin not loading on some devices

This commit is contained in:
Paul 2026-06-03 10:02:40 +02:00
parent a493120095
commit 101758a52b
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{
"id": "folder-notes",
"name": "Folder notes",
"version": "1.8.24",
"version": "1.8.25",
"minAppVersion": "1.4.10",
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
"author": "Lost Paul",

View file

@ -221,9 +221,11 @@ export default class FolderNotesPlugin extends Plugin {
registerFileExplorerObserver(this);
const fileExplorer = getFileExplorer(this);
if (fileExplorer) {
// @ts-expect-error use internal API
fileExplorer.view.tree.infinityScroll.rootMargin = 1.5;
// @ts-expect-error use internal API
const infinityScroll = fileExplorer?.view?.tree?.infinityScroll;
if (infinityScroll) {
infinityScroll.rootMargin = 1.5;
}
this.registerView(FOLDER_OVERVIEW_VIEW, (leaf: WorkspaceLeaf) => {