Skip to content

Commit

Permalink
feat: persist isSceneOnTop to localStorage (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewized authored Jul 29, 2024
1 parent f2dc4d2 commit 3af6ad1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
let heartbeatInterval
let isFullScreen
let isStudioMode
let isSceneOnTop
let isSceneOnTop = window.localStorage.getItem('isSceneOnTop') || false
let isVirtualCamActive
let isIconMode = window.localStorage.getItem('isIconMode') || false
let isReplaying
Expand All @@ -110,6 +110,10 @@
let errorMessage = ''
let imageFormat = 'jpg'
$: isSceneOnTop
? window.localStorage.setItem('isSceneOnTop', 'true')
: window.localStorage.removeItem('isSceneOnTop')
$: isIconMode
? window.localStorage.setItem('isIconMode', 'true')
: window.localStorage.removeItem('isIconMode')
Expand Down

0 comments on commit 3af6ad1

Please sign in to comment.