UNPKG

376 BJavaScriptView Raw
1var growl = require('growl');
2
3module.exports = function(app) {
4 app.notify = function(msg, options, callback) {
5 if (!callback) callback = Function.prototype;
6 if (typeof options === 'string') options = { image: options };
7 if (!options) options = {};
8 if (!options.title) options.title = app.title || app.name;
9 return growl(msg, options, callback);
10 };
11};