mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
Only write tree to localStorage during prenav event
This commit is contained in:
parent
08b2228a43
commit
b31acc6f0f
@ -74,9 +74,6 @@ function toggleFolder(evt: MouseEvent) {
|
||||
collapsed: isCollapsed,
|
||||
})
|
||||
}
|
||||
|
||||
const stringifiedFileTree = JSON.stringify(currentExplorerState)
|
||||
localStorage.setItem("fileTree", stringifiedFileTree)
|
||||
}
|
||||
|
||||
function createFileNode(currentSlug: FullSlug, node: FileTrieNode): HTMLLIElement {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user