Skip to content

Commit

Permalink
replaced unload with pagehide
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugma committed Dec 20, 2024
1 parent fd2b942 commit bb2c35d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/app/tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const useTtsPinia = defineStore('ui/tts', () => {
})

// タブ閉じたときには止める
window.addEventListener('unload', () => {
window.addEventListener('pagehide', () => {
stop()
})

Expand Down

0 comments on commit bb2c35d

Please sign in to comment.