notmasteryet/pdf.js — comment on commit 90bf9bf117250ce9ea52bdf11a075a9ba06f4fed
File: pdf.js line 926
By jviereck:

I use `onmessage` instead of `addEventListener`, which does the same thing, but we should be consistent. I don't have strong preferences which one to take, but this is the first time I see someone to add an `addEventListener` to the worker. Is `onmessage` more common?