Add awaits to event emissions

This commit is contained in:
Cohee
2025-02-08 19:13:05 +02:00
parent 5886bb6b3a
commit d5959a4681
4 changed files with 10 additions and 10 deletions

View File

@ -2451,7 +2451,7 @@ async function resetMovablePanels(type) {
}
saveSettingsDebounced();
eventSource.emit(event_types.MOVABLE_PANELS_RESET);
await eventSource.emit(event_types.MOVABLE_PANELS_RESET);
eventSource.once(event_types.SETTINGS_UPDATED, () => {
$('.resizing').removeClass('resizing');