Skip to content

Commit

Permalink
fix local.set
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Jan 8, 2025
1 parent 73b824a commit ebae6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useBrowserStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function useBrowserLocalStorage<T>(key: string, defaultValue: T) {

// Watch for changes in the storage and update chrome.storage.sync
watch(data, (newValue) => {
chrome.storage.sync.set({ [key]: newValue })
chrome.storage.local.set({ [key]: newValue })
})

return data
Expand Down

0 comments on commit ebae6ed

Please sign in to comment.