Skip to content
Snippets Groups Projects
Commit fcbbd0da authored by KDSBrowne's avatar KDSBrowne
Browse files

add default icon parameter to notify()

parent b91229e3
No related branches found
No related tags found
No related merge requests found
...@@ -409,15 +409,13 @@ class AudioManager { ...@@ -409,15 +409,13 @@ class AudioManager {
return this._userData; return this._userData;
} }
notify(message, error = false, icon) { notify(message, error = false, icon = 'unmute') {
let _icon = 'unmute'; const audioIcon = this.isListenOnly ? 'listen' : icon;
_icon = icon || _icon;
_icon = this.isListenOnly ? 'listen' : _icon;
notify( notify(
message, message,
error ? 'error' : 'info', error ? 'error' : 'info',
_icon, audioIcon,
); );
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment