mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-02 12:27:21 +02:00
Merge pull request #20776 from Snuffleupagus/commentManager-l10n-getDirection
Use `L10n.prototype.getDirection` rather than querying the DOM, when initializing the `CommentManager` instance
This commit is contained in:
commit
0c29cc5887
@ -500,9 +500,6 @@ const PDFViewerApplication = {
|
|||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
const ltr = appConfig.viewerContainer
|
|
||||||
? getComputedStyle(appConfig.viewerContainer).direction === "ltr"
|
|
||||||
: true;
|
|
||||||
const commentManager =
|
const commentManager =
|
||||||
AppOptions.get("enableComment") && appConfig.editCommentDialog
|
AppOptions.get("enableComment") && appConfig.editCommentDialog
|
||||||
? new CommentManager(
|
? new CommentManager(
|
||||||
@ -532,7 +529,7 @@ const PDFViewerApplication = {
|
|||||||
eventBus,
|
eventBus,
|
||||||
linkService,
|
linkService,
|
||||||
overlayManager,
|
overlayManager,
|
||||||
ltr,
|
/* ltr = */ l10n.getDirection() === "ltr",
|
||||||
hasForcedColors
|
hasForcedColors
|
||||||
)
|
)
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user