mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
Copilot suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
b31acc6f0f
commit
50b6c217c6
@ -262,7 +262,7 @@ document.addEventListener("prenav", async () => {
|
|||||||
sessionStorage.setItem("explorerScrollTop", explorer.scrollTop.toString())
|
sessionStorage.setItem("explorerScrollTop", explorer.scrollTop.toString())
|
||||||
if (!currentExplorerState) return
|
if (!currentExplorerState) return
|
||||||
const stringifiedFileTree = JSON.stringify(currentExplorerState)
|
const stringifiedFileTree = JSON.stringify(currentExplorerState)
|
||||||
localStorage.setItem("fileTree", stringifiedFileTree)
|
sessionStorage.setItem("fileTree", stringifiedFileTree)
|
||||||
})
|
})
|
||||||
|
|
||||||
document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
|
document.addEventListener("nav", async (e: CustomEventMap["nav"]) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user