From 85251da218b3af0cdbe50262127ec3bd7a397272 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Mon, 22 Feb 2021 12:43:10 +0100 Subject: [PATCH] Remove the `NullL10n` default value from viewer components not included in the `COMPONENTS`-bundle For any viewer component not listed in `web/pdf_viewer.component.js`, it shouldn't be necessary to provide a default value for the `l10n`-parameters. Note also that these *specific* components are heavily tailored towards the default viewer use-case, rather than for general usage. --- web/password_prompt.js | 8 +------- web/pdf_document_properties.js | 3 +-- web/pdf_find_bar.js | 3 +-- web/pdf_print_service.js | 4 ++-- web/pdf_sidebar.js | 10 ++-------- web/pdf_sidebar_resizer.js | 4 +--- web/pdf_thumbnail_view.js | 4 ++-- web/pdf_thumbnail_viewer.js | 9 +-------- web/toolbar.js | 3 +-- 9 files changed, 12 insertions(+), 36 deletions(-) diff --git a/web/password_prompt.js b/web/password_prompt.js index 3a69655e5..2af0c47a6 100644 --- a/web/password_prompt.js +++ b/web/password_prompt.js @@ -13,7 +13,6 @@ * limitations under the License. */ -import { NullL10n } from "./ui_utils.js"; import { PasswordResponses } from "pdfjs-lib"; /** @@ -37,12 +36,7 @@ class PasswordPrompt { * @param {boolean} [isViewerEmbedded] - If the viewer is embedded, in e.g. * an