mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Remove the deprecated properties from the "presentationmodechanged" event (PR 12788 follow-up)
These properties have been deprecated in two releases now, hence we shouldn't need to keep this code around.
This commit is contained in:
parent
6ddc297170
commit
b2758c3023
1 changed files with 4 additions and 22 deletions
|
@ -155,28 +155,10 @@ class PDFPresentationMode {
|
||||||
} else if (this.active) {
|
} else if (this.active) {
|
||||||
state = PresentationModeState.FULLSCREEN;
|
state = PresentationModeState.FULLSCREEN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
|
|
||||||
this.eventBus.dispatch("presentationmodechanged", {
|
this.eventBus.dispatch("presentationmodechanged", {
|
||||||
source: this,
|
source: this,
|
||||||
state,
|
state,
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
this.eventBus.dispatch("presentationmodechanged", {
|
|
||||||
source: this,
|
|
||||||
state,
|
|
||||||
get active() {
|
|
||||||
throw new Error(
|
|
||||||
"Deprecated parameter: `active`, please use `state` instead."
|
|
||||||
);
|
|
||||||
},
|
|
||||||
get switchInProgress() {
|
|
||||||
throw new Error(
|
|
||||||
"Deprecated parameter: `switchInProgress`, please use `state` instead."
|
|
||||||
);
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue