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

5 lines
88 B
JavaScript
Raw Normal View History

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