Merge pull request #13135 from eltociear/patch-1

Fix typo in pdf_history.js
This commit is contained in:
Tim van der Meij 2021-03-24 20:42:05 +01:00 committed by GitHub
commit 0ff92fb9c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ class PDFHistory {
// being scrolled into view, to avoid potentially inconsistent state.
this._popStateInProgress = true;
// We defer the resetting of `this._popStateInProgress`, to account for
// e.g. zooming occuring when the new destination is being navigated to.
// e.g. zooming occurring when the new destination is being navigated to.
Promise.resolve().then(() => {
this._popStateInProgress = false;
});
@ -314,7 +314,7 @@ class PDFHistory {
// being scrolled into view, to avoid potentially inconsistent state.
this._popStateInProgress = true;
// We defer the resetting of `this._popStateInProgress`, to account for
// e.g. zooming occuring when the new page is being navigated to.
// e.g. zooming occurring when the new page is being navigated to.
Promise.resolve().then(() => {
this._popStateInProgress = false;
});