source: trip-planner-front/node_modules/webpack-dev-server/client/utils/sendMessage.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 402 bytes
Line 
1'use strict';
2/* global __resourceQuery WorkerGlobalScope self */
3// Send messages to the outside, so plugins can consume it.
4
5function sendMsg(type, data) {
6 if (typeof self !== 'undefined' && (typeof WorkerGlobalScope === 'undefined' || !(self instanceof WorkerGlobalScope))) {
7 self.postMessage({
8 type: "webpack".concat(type),
9 data: data
10 }, '*');
11 }
12}
13
14module.exports = sendMsg;
Note: See TracBrowser for help on using the repository browser.