MCPcopy
hub / github.com/koodo-reader/koodo-reader / isMessagePort

Function isMessagePort

public/lib/pdfjs/pdf.worker.mjs:61634–61636  ·  view source on GitHub ↗
(maybePort)

Source from the content-addressed store, hash-verified

61632 }
61633}
61634function isMessagePort(maybePort) {
61635 return typeof maybePort.postMessage === "function" && "onmessage" in maybePort;
61636}
61637if (typeof window === "undefined" && !isNodeJS && typeof self !== "undefined" && isMessagePort(self)) {
61638 WorkerMessageHandler.initializeFromPort(self);
61639}

Callers 1

pdf.worker.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected