mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 18:00:00 +00:00
17 lines
408 B
JavaScript
17 lines
408 B
JavaScript
"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
|
|
});
|
|
}
|
|
};
|
|
};
|
|
//# sourceMappingURL=notify.js.map
|