1 | var growl = require('growl');
|
2 |
|
3 | module.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 | };
|