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

Declare the linkService and l10n properties as optional in the PDFViewerOptions documentation #16361

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

timvandermeij
Copy link
Contributor

Both properties have a fallback to SimpleLinkService respectively NullL10n if no other value is provided explicitly.

I have also checked the other properties of the PDFViewerOptions documentation to make sure those are also correct now and found no further problems.

Fixes #16360.

…DFViewerOptions` documentation

Both properties have a fallback to `SimpleLinkService` respectively
`NullL10n` if no other value is provided explicitly.
@SebCorbin
Copy link
Contributor

Ha! You were faster than me :D consider #16362 as a partial duplicate

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference: While leaving out e.g. the linkService has a fallback, a lot of annotationLayer-related functionality will then not work (as in the full viewer) since the SimpleLinkService mostly have stub-methods.

r=me, thank you!

@Snuffleupagus Snuffleupagus merged commit cefa8c6 into mozilla:master Apr 27, 2023
@timvandermeij timvandermeij deleted the jsdoc-pdfvieweroptions branch April 27, 2023 15:24
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.

Bad typing of linkService and l10n in PDFViewerOptions
3 participants