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

5 lines
91 B
JavaScript
Raw Normal View History

self.onconnect = function (e) {
2020-03-20 20:28:31 +00:00
const port = e.ports[0];
port.postMessage('ready');
};