electron/spec/fixtures/pages/service-worker/worker-no-node.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
234 B
JavaScript
Raw Normal View History

self.clients.matchAll({ includeUncontrolled: true }).then((clients) => {
if (!clients?.length) return;
const msg = [typeof process, typeof setImmediate, typeof global, typeof Buffer].join(' ');
clients[0].postMessage(msg);
});