biofriction-wp-theme/node_modules/browser-sync/dist/public/notify.js

17 lines
408 B
JavaScript
Raw Normal View History

2021-10-26 14:18:09 +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