Last change
on this file since 1ad8e64 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 |
|
---|
5 | function 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 |
|
---|
14 | module.exports = sendMsg; |
---|
Note:
See
TracBrowser
for help on using the repository browser.