notify.js 408 B

1234567891011121314151617
  1. "use strict";
  2. /**
  3. * @param {BrowserSync} browserSync
  4. * @returns {Function}
  5. */
  6. module.exports = function (browserSync) {
  7. return function (msg, timeout) {
  8. if (msg) {
  9. browserSync.events.emit("browser:notify", {
  10. message: msg,
  11. timeout: timeout || 2000,
  12. override: true
  13. });
  14. }
  15. };
  16. };
  17. //# sourceMappingURL=notify.js.map