mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 12:38:39 -09:00
* Upgrade eslint to v6 and add TypeScript linting * Fix pr checks Co-authored-by: Benjamin Staneck <Stanzilla@users.noreply.github.com>
10 lines
313 B
JavaScript
10 lines
313 B
JavaScript
/* eslint no-new:0 */
|
|
export default function notify(title, body, details = {}) {
|
|
//eslint-disable-next-line no-console
|
|
console.log(`[Notification] ${title}: ${body}`);
|
|
if (details.error) {
|
|
//eslint-disable-next-line no-console
|
|
console.error(details.error);
|
|
}
|
|
new Notification(title, {body});
|
|
}
|