fix: add async/await to timer event handlers for sound
This commit is contained in:
@@ -101,17 +101,17 @@
|
|||||||
timerState = state
|
timerState = state
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleWarning(state) {
|
async function handleWarning(state) {
|
||||||
timerState = state
|
timerState = state
|
||||||
if (settings?.soundEnabled) {
|
if (settings?.soundEnabled) {
|
||||||
playSound('warning')
|
await playSound('warning')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleTimeUp(state) {
|
async function handleTimeUp(state) {
|
||||||
timerState = state
|
timerState = state
|
||||||
if (settings?.soundEnabled) {
|
if (settings?.soundEnabled) {
|
||||||
playSound('timeup')
|
await playSound('timeup')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -119,11 +119,11 @@
|
|||||||
timerState = state
|
timerState = state
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleMeetingEnded(state) {
|
async function handleMeetingEnded(state) {
|
||||||
timerState = state
|
timerState = state
|
||||||
meetingActive = false
|
meetingActive = false
|
||||||
if (settings?.soundEnabled) {
|
if (settings?.soundEnabled) {
|
||||||
playSound('meeting_end')
|
await playSound('meeting_end')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ export namespace models {
|
|||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
timeLimit: number;
|
timeLimit: number;
|
||||||
|
timeSpent: number;
|
||||||
order: number;
|
order: number;
|
||||||
status: string;
|
status: string;
|
||||||
|
|
||||||
@@ -363,6 +364,7 @@ export namespace models {
|
|||||||
this.id = source["id"];
|
this.id = source["id"];
|
||||||
this.name = source["name"];
|
this.name = source["name"];
|
||||||
this.timeLimit = source["timeLimit"];
|
this.timeLimit = source["timeLimit"];
|
||||||
|
this.timeSpent = source["timeSpent"];
|
||||||
this.order = source["order"];
|
this.order = source["order"];
|
||||||
this.status = source["status"];
|
this.status = source["status"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user