Opal-Estate-Pro/node_modules/browser-sync/dist/public/notify.js
2019-09-13 11:27:52 +07:00

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