Skip to content

Commit

Permalink
feat: save debug config in local storage to well well well
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Oct 31, 2023
1 parent 0530705 commit 0157068
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/sidebar/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
// save to local storage
localStorage.setItem("model", $stateStore.url.model)
localStorage.setItem("server", $stateStore.url.server)
localStorage.setItem("debug", String($stateStore.debug))
// closing animation
closingAnimation = true
Expand All @@ -33,6 +34,7 @@
onMount(() => {
$stateStore.url.model = localStorage.getItem("model") || ""
$stateStore.url.server = localStorage.getItem("server") || get(stateStore).url.server
$stateStore.debug = localStorage.getItem("debug") === "true" || false
})
</script>

Expand Down

0 comments on commit 0157068

Please sign in to comment.