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

4 lines
88 B
JavaScript

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