We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90da0b0 commit f7575c9Copy full SHA for f7575c9
selections/static/js/render_pdf.js
@@ -1,8 +1,5 @@
1
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
-
+function pleaseWork() {
6
// Loaded via <script> tag, create shortcut to access PDF.js exports.
7
var { pdfjsLib } = globalThis.pdfjsLib;
8
@@ -42,3 +39,6 @@ loadingTask.promise.then(function (pdf) {
42
39
// PDF loading error
43
40
console.error(reason);
44
41
});
+}
+
+document.getElementById('body').addEventListener('load', pleaseWork)
0 commit comments