mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
[CRX] Drop code supporting ancient Chrome versions
This commit is contained in:
parent
2c74323e3d
commit
70db938fe7
5 changed files with 24 additions and 76 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue