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:
commit
86370bd5c5
3 changed files with 36 additions and 180 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue