Skip to content

Commit cd7cd6f

Browse files
authored
Fix PagedJS distribution CDN
Closes #321
1 parent 257fea6 commit cd7cd6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ async function makePDF(docPath, pdfPath) {
509509
window.PagedConfig = window.PagedConfig || {};
510510
window.PagedConfig.auto = false;
511511
});
512-
await page.addScriptTag({ url: 'https://unpkg.com/pagedjs/dist/paged.polyfill.js' });
512+
await page.addScriptTag({ url: 'https://cdn.jsdelivr.net/npm/pagedjs@0.4.3/dist/paged.polyfill.js' });
513513

514514
let renderingDone;
515515
let rendered = new Promise(function (resolve, reject) {

smpte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ async function render() {
13701370
/* debug print version */
13711371
if (docMetadata.media === "print") {
13721372
let pagedJS = document.createElement("script");
1373-
pagedJS.setAttribute("src", "https://unpkg.com/pagedjs/dist/paged.polyfill.js");
1373+
pagedJS.setAttribute("src", "https://cdn.jsdelivr.net/npm/pagedjs@0.4.3/dist/paged.polyfill.js");
13741374
pagedJS.id = "paged-js-script";
13751375
document.head.appendChild(pagedJS);
13761376
}

0 commit comments

Comments
 (0)