source: frontend/node_modules/webpack-dev-server/client/utils/sendMessage.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 435 bytes
RevLine 
[9af201e]1/* global __resourceQuery WorkerGlobalScope */
2
3// Send messages to the outside, so plugins can consume it.
4/**
5 * @param {string} type
6 * @param {any} [data]
7 */
8function sendMsg(type, data) {
9 if (typeof self !== "undefined" && (typeof WorkerGlobalScope === "undefined" || !(self instanceof WorkerGlobalScope))) {
10 self.postMessage({
11 type: "webpack".concat(type),
12 data: data
13 }, "*");
14 }
15}
16export default sendMsg;
Note: See TracBrowser for help on using the repository browser.