Remove the PDFJS.disableHistory code from src/shared/compatibility.js

This compatibility code is only relevant for browsers that will no longer be supported (with PDF.js version 2.0), hence we ought to be able to remove it.
This commit is contained in:
Jonas Jenwald 2017-11-12 17:32:36 +01:00
parent 2f936f88f4
commit eb3a1f24a3

View File

@ -488,20 +488,6 @@ PDFJS.compatibilityChecked = true;
}
})();
// Check if the browser supports manipulation of the history.
// Support: IE<10, Android<4.2
(function checkHistoryManipulation() {
if (!hasDOM) {
return;
}
// Android 2.x has so buggy pushState support that it was removed in
// Android 3.0 and restored as late as in Android 4.2.
// Support: Android 2.x
if (!history.pushState || isAndroidPre3) {
PDFJS.disableHistory = true;
}
})();
// Support: IE<11, Chrome<21, Android<4.4, Safari<6
(function checkSetPresenceInImageData() {
if (!hasDOM) {