⏪ (sound) no sound when changing session
This commit is contained in:
Binary file not shown.
@@ -37,7 +37,6 @@ import {
|
|||||||
import DreamMaker from '@/components/DreamMaker.vue'
|
import DreamMaker from '@/components/DreamMaker.vue'
|
||||||
import { notify } from '@/utils/notification'
|
import { notify } from '@/utils/notification'
|
||||||
|
|
||||||
const moveSound = new Audio(require('@/assets/sounds/move.mp3'))
|
|
||||||
type Stopwatch = 'stopped' | 'started'
|
type Stopwatch = 'stopped' | 'started'
|
||||||
const INTERVAL = 120
|
const INTERVAL = 120
|
||||||
|
|
||||||
@@ -81,7 +80,6 @@ export default defineComponent({
|
|||||||
: 'Programmer 2'
|
: 'Programmer 2'
|
||||||
|
|
||||||
notify(`Time to change, ${programmer}, your turn!`)
|
notify(`Time to change, ${programmer}, your turn!`)
|
||||||
moveSound.play()
|
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
stopWatchSessionId = setInterval(() => {
|
stopWatchSessionId = setInterval(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user