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

Remove the viewer option from the PDFPresentationMode constructor #11388

Conversation

Snuffleupagus
Copy link
Collaborator

The viewer option was only used for checking that a document is loaded in PDFPresentationMode.request, however that's just as easy to do by simply utilizing BaseViewer.pagesCount instead and this way we can also avoid the DOM lookup.

The `viewer` option was *only* used for checking that a document is loaded in `PDFPresentationMode.request`, however that's just as easy to do by simply utilizing `BaseViewer.pagesCount` instead and this way we can also avoid the DOM lookup.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2019

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/75d1ccf1daf0363/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2019

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/75d1ccf1daf0363/output.txt

Total script time: 1.72 mins

Published

@timvandermeij timvandermeij merged commit 7b503c8 into mozilla:master Dec 8, 2019
@timvandermeij
Copy link
Contributor

Nice decoupling!

@Snuffleupagus Snuffleupagus deleted the rm-PDFPresentationMode-viewer-option branch December 10, 2019 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants