Skip to content

Commit

Permalink
Better generationing and removing
Browse files Browse the repository at this point in the history
  • Loading branch information
a-crowell committed Aug 20, 2024
1 parent 60f6fdb commit 8da8958
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fission/src/mirabuf/MirabufLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ class MirabufCachingService {
(window.localStorage.getItem(MIRABUF_LOCALSTORAGE_GENERATION_KEY) ?? "") != MIRABUF_LOCALSTORAGE_GENERATION
) {
window.localStorage.setItem(MIRABUF_LOCALSTORAGE_GENERATION_KEY, MIRABUF_LOCALSTORAGE_GENERATION)
window.localStorage.setItem(robotsDirName, "{}")
window.localStorage.setItem(fieldsDirName, "{}")
this.RemoveAll()
return {}
}

Expand Down Expand Up @@ -330,8 +329,8 @@ class MirabufCachingService {
fieldFolderHandle.removeEntry(key)
}

window.localStorage.removeItem(robotsDirName)
window.localStorage.removeItem(fieldsDirName)
window.localStorage.setItem(robotsDirName, "{}")
window.localStorage.setItem(fieldsDirName, "{}")

backUpRobots = {}
backUpFields = {}
Expand Down

0 comments on commit 8da8958

Please sign in to comment.