Skip to content

Commit f7575c9

Browse files
committed
aaagh
1 parent 90da0b0 commit f7575c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

selections/static/js/render_pdf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11

2-
// atob() is used to convert base64 encoded PDF to binary-like data.
3-
// (See also https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/
4-
// Base64_encoding_and_decoding.)
5-
2+
function pleaseWork() {
63
// Loaded via <script> tag, create shortcut to access PDF.js exports.
74
var { pdfjsLib } = globalThis.pdfjsLib;
85

@@ -42,3 +39,6 @@ loadingTask.promise.then(function (pdf) {
4239
// PDF loading error
4340
console.error(reason);
4441
});
42+
}
43+
44+
document.getElementById('body').addEventListener('load', pleaseWork)

0 commit comments

Comments
 (0)