mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
15 lines
317 B
JavaScript
15 lines
317 B
JavaScript
const path = require('path');
|
|
const notifier = require('node-notifier');
|
|
|
|
function notify(title, body) {
|
|
const icon = path.join(__dirname, 'icon.png');
|
|
|
|
notifier.notify({
|
|
title: title,
|
|
message: body,
|
|
icon: icon
|
|
});
|
|
console.log(`${title}, ${body}`);
|
|
}
|
|
|
|
module.exports = notify;
|