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
@ -155,28 +155,10 @@ class PDFPresentationMode {
|
|||||||
} else if (this.active) {
|
} else if (this.active) {
|
||||||
state = PresentationModeState.FULLSCREEN;
|
state = PresentationModeState.FULLSCREEN;
|
||||||
}
|
}
|
||||||
|
this.eventBus.dispatch("presentationmodechanged", {
|
||||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
|
source: this,
|
||||||
this.eventBus.dispatch("presentationmodechanged", {
|
state,
|
||||||
source: this,
|
});
|
||||||
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…
x
Reference in New Issue
Block a user