weixin_39918043 2020-11-30 07:01
浏览 0

When opening a PDF with the extension switched on, sometimes we start examining too soon.

We start to talk to PDF.js too soon, even before it has properly initialized itself. Earlier this did not happen, because PDF could not be tested with extension, only from bookmarklet, and the bookmarklet was always deployed after the PDF has loaded.

But now that we have the experimental plugin build (for #152), it's possible to use extension with PDF, so we can navigate to a PDF document with extension switched on, which results in this problem.

Probably easy to fix; just need to find a detect PDF.js initialization is ready.

该提问来源于开源项目:hypothesis/h

  • 写回答

5条回答 默认 最新

  • weixin_39918043 2020-11-30 07:01
    关注

    Easy workaround, until I fix this: - Switch off the extension - Reload the page - Switch on the extension

    评论

报告相同问题?