Bones/node_modules/browser-sync/lib/public/notify.js

20 lines
377 B
JavaScript
Raw Normal View History

2017-05-17 13:45:25 -04:00
"use strict";
/**
* @param {BrowserSync} browserSync
* @returns {Function}
*/
module.exports = function (browserSync) {
return function (msg, timeout) {
if (msg) {
browserSync.events.emit("browser:notify", {
message: msg,
timeout: timeout || 2000,
override: true
});
}
};
};