add default icon parameter to notify()

This commit is contained in:
KDSBrowne 2019-04-12 13:55:14 +00:00
parent b91229e393
commit fcbbd0dab5

View File

@ -409,15 +409,13 @@ class AudioManager {
return this._userData;
}
notify(message, error = false, icon) {
let _icon = 'unmute';
_icon = icon || _icon;
_icon = this.isListenOnly ? 'listen' : _icon;
notify(message, error = false, icon = 'unmute') {
const audioIcon = this.isListenOnly ? 'listen' : icon;
notify(
message,
error ? 'error' : 'info',
_icon,
audioIcon,
);
}
}