Skip to content

Notifications

Giorgio Garofalo edited this page Apr 5, 2020 · 1 revision

Chorus comes with a simple drop-down notification system which allows to show messages with ease.
Within the JavaScript API, a notification can be sent by calling either alert(text) for standard messages or error(text) for errors (which last longer on the screen and are coloured in red). Both depend on the sendNotification(text, isError) function.

alert('I am a standard message!');
error('I am an error!');

Message Error