Merge pull request #13020 from Snuffleupagus/rm-some-NullL10n-use

Remove the `NullL10n` default value from viewer components not included in the `COMPONENTS`-bundle
This commit is contained in:
Tim van der Meij 2021-02-25 23:27:49 +01:00 committed by GitHub
commit 163a840a1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 12 additions and 36 deletions

View file

@ -14,7 +14,6 @@
*/
import { FindState } from "./pdf_find_controller.js";
import { NullL10n } from "./ui_utils.js";
const MATCHES_COUNT_LIMIT = 1000;
@ -25,7 +24,7 @@ const MATCHES_COUNT_LIMIT = 1000;
* is done by PDFFindController.
*/
class PDFFindBar {
constructor(options, eventBus, l10n = NullL10n) {
constructor(options, eventBus, l10n) {
this.opened = false;
this.bar = options.bar;