Skip to content

Commit

Permalink
fix(NextcloudBookmarks): Run javascript feature detection earlier
Browse files Browse the repository at this point in the history
onSyncStart instead of when getting the tree

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Oct 1, 2024
1 parent e08bf4c commit 74056a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/adapters/NextcloudBookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ export default class NextcloudBookmarksAdapter implements Adapter, BulkImportRes
}
}

await this.checkFeatureJavascriptLinks()

this.abortController = new AbortController()
this.abortSignal = this.abortController.signal

Expand Down Expand Up @@ -234,8 +236,6 @@ export default class NextcloudBookmarksAdapter implements Adapter, BulkImportRes
async getBookmarksTree(loadAll = false):Promise<Folder<typeof ItemLocation.SERVER>> {
this.list = null // clear cache before starting a new sync

await this.checkFeatureJavascriptLinks()

if (!loadAll) {
return this.getSparseBookmarksTree()
} else {
Expand Down

0 comments on commit 74056a9

Please sign in to comment.