[CRX] Drop code supporting ancient Chrome versions

This commit is contained in:
Rob Wu 2023-07-02 17:10:17 +02:00
parent 2c74323e3d
commit 70db938fe7
5 changed files with 24 additions and 76 deletions

View file

@ -22,11 +22,7 @@ function getViewerURL(pdf_url) {
return VIEWER_URL + "?file=" + encodeURIComponent(pdf_url);
}
if (CSS.supports("animation", "0s")) {
document.addEventListener("animationstart", onAnimationStart, true);
} else {
document.addEventListener("webkitAnimationStart", onAnimationStart, true);
}
document.addEventListener("animationstart", onAnimationStart, true);
function onAnimationStart(event) {
if (event.animationName === "pdfjs-detected-object-or-embed") {