1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #15286 from Snuffleupagus/rm-deprecated

[api-major] Remove (most of) the remaining `deprecated` code
This commit is contained in:
Tim van der Meij 2022-08-28 19:21:45 +02:00 committed by GitHub
commit 86370bd5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 180 deletions

View file

@ -698,15 +698,6 @@ class ProgressBar {
#visible = true;
constructor(id) {
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
arguments.length > 1
) {
throw new Error(
"ProgressBar no longer accepts any additional options, " +
"please use CSS rules to modify its appearance instead."
);
}
const bar = document.getElementById(id);
this.#classList = bar.classList;
}