From 846bd86520c671ad25900b9791e0d328f5bc0604 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 25 Oct 2023 12:11:57 +0200 Subject: [PATCH] Fix error that's breaking the `ConstL10n` class (PR 17161 follow-up) I forgot to include `web/l10n_utils.js` in PR 17161, which currently breaks `ConstL10n` since there's no longer a method called `setL10n`; sorry about that! --- web/l10n_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/l10n_utils.js b/web/l10n_utils.js index 940c68c8f4f1b..96c9346dd24ef 100644 --- a/web/l10n_utils.js +++ b/web/l10n_utils.js @@ -26,7 +26,7 @@ import { shadow } from "pdfjs-lib"; class ConstL10n extends L10n { constructor(lang) { super({ lang }); - this.setL10n( + this._setL10n( new DOMLocalization([], ConstL10n.#generateBundles.bind(ConstL10n, lang)) ); }