Opal-Estate-Pro/node_modules/browser-sync/dist/public/notify.js

17 lines
408 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02: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
});
}
};
};
//# sourceMappingURL=notify.js.map