electron/spec/fixtures/workers/shared_worker.js
2020-03-20 13:28:31 -07:00

7 lines
163 B
JavaScript

this.onconnect = function (event) {
const port = event.ports[0];
port.start();
port.onmessage = function (event) {
port.postMessage(event.data);
};
};