diff --git a/web/app.js b/web/app.js index 1a46dc590..ff3ec601b 100644 --- a/web/app.js +++ b/web/app.js @@ -500,9 +500,6 @@ const PDFViewerApplication = { ) : null; - const ltr = appConfig.viewerContainer - ? getComputedStyle(appConfig.viewerContainer).direction === "ltr" - : true; const commentManager = AppOptions.get("enableComment") && appConfig.editCommentDialog ? new CommentManager( @@ -532,7 +529,7 @@ const PDFViewerApplication = { eventBus, linkService, overlayManager, - ltr, + /* ltr = */ l10n.getDirection() === "ltr", hasForcedColors ) : null;