electron/spec/fixtures/api/shared-worker/shared-worker1.js
2020-03-20 13:28:31 -07:00

4 lines
91 B
JavaScript

self.onconnect = function (e) {
const port = e.ports[0];
port.postMessage('ready');
};