electron/spec/fixtures/api/shared-worker/shared-worker1.js

5 lines
91 B
JavaScript

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