Make it work with latest PDF.JS

PDF.js recently [removed `LegacyPromise`](https://github.com/mozilla/pdf.js/issues/4430).

This PR adapts `pdfListView` to that change.