dispatchEvent(new CustomEvent(...)) to fireEvent(...)

This commit is contained in:
the-djmaze 2022-02-11 12:21:16 +01:00
parent 2d46eaa783
commit 44ee236709
9 changed files with 25 additions and 21 deletions

View file

@ -13,7 +13,7 @@ import { KeyboardShortcutsHelpPopupView } from 'View/Popup/KeyboardShortcutsHelp
import { AccountPopupView } from 'View/Popup/Account';
import { ContactsPopupView } from 'View/Popup/Contacts';
import { doc, Settings/*, SettingsGet*/, leftPanelDisabled } from 'Common/Globals';
import { doc, Settings/*, SettingsGet*/, leftPanelDisabled, fireEvent } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
@ -49,7 +49,7 @@ export class SystemDropDownUserView extends AbstractViewRight {
}
stopPlay() {
dispatchEvent(new CustomEvent('audio.api.stop'));
fireEvent('audio.api.stop');
}
accountClick(account, event) {