Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-factor loadAndEnablePDFBug and PDFBug.init #13905

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

The loadAndEnablePDFBug helper function, in web/app.js, can be simplified a little bit by making it async. Furthermore, given how PDFBug is being used, we can also (slightly) re-factor PDFBug.init such that the PDFBug.enable-call is done internally rather than having to handle that manually at the call-site.

(Finally, utilize await more in the loadFakeWorker helper function.)

The `loadAndEnablePDFBug` helper function, in `web/app.js`, can be simplified a little bit by making it `async`. Furthermore, given how `PDFBug` is being used, we can also (slightly) re-factor `PDFBug.init` such that the `PDFBug.enable`-call is done internally rather than having to handle that manually at the call-site.

(Finally, utilize `await` more in the `loadFakeWorker` helper function.)
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/ab0321bfe2ea4e5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/ab0321bfe2ea4e5/output.txt

Total script time: 5.11 mins

Published

@timvandermeij timvandermeij merged commit 50dffda into mozilla:master Aug 21, 2021
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the refactor-loadAndEnablePDFBug branch August 21, 2021 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants