Skip to content

Commit

Permalink
Merge pull request #4424 from traPtitech/fix/unloadEvent
Browse files Browse the repository at this point in the history
replaced `unload` with `pagehide`
  • Loading branch information
Pugma authored Dec 20, 2024
2 parents fd2b942 + 8d7150e commit d6ede9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion src/views/Settings/ThemeTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<!-- eslint-enable vue/valid-v-model --->
<div>
<input
v-model="(val[name as keyof typeof val] as string)"
v-model="val[name as keyof typeof val] as string"
type="color"
:class="$style.colorInput"
/>
Expand Down

0 comments on commit d6ede9e

Please sign in to comment.