You see `PDFJS.WorkerMessageHandler`? It has a `setup` function. I would monkey-patch it so that first we call original setup function and then we add our own handler for SHA onto it.