Skip to content

Commit

Permalink
Add logging for tab restoration
Browse files Browse the repository at this point in the history
  • Loading branch information
1whatleytay committed Nov 16, 2024
1 parent 1c5571f commit cebb6d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ export function useTabs(): TabsResult {
return
}

invoke('send_trace', { text: 'restoring' })
.then(() => { })

const state = JSON.parse(item) as TabsRestoreState

if (state.version != tabsVersion) {
Expand Down Expand Up @@ -217,7 +220,7 @@ export function useTabs(): TabsResult {
for (const [key, value] of map.entries()) {
invoke('send_trace', { text: `backing up ${key} ${value.length}` })
.then(() => { })

localStorage.setItem(backupKey(key), value)
}
}
Expand Down

0 comments on commit cebb6d8

Please sign in to comment.