@farberg/reveal-template 1.0.63 → 1.0.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/generate_pdfs.js +7 -1
package/package.json
CHANGED
package/scripts/generate_pdfs.js
CHANGED
|
@@ -113,7 +113,13 @@ async function convert_to_pdf_single(todo) {
|
|
|
113
113
|
const page = await browser.newPage();
|
|
114
114
|
|
|
115
115
|
await page.goto(todo.presentation_url, { timeout: 5000, waitUntil: ['load', 'domcontentloaded'] });
|
|
116
|
-
|
|
116
|
+
|
|
117
|
+
const selector = 'div.lecturetitle > h1'
|
|
118
|
+
try {
|
|
119
|
+
await page.waitForSelector(selector, { timeout: 5000 })
|
|
120
|
+
} catch (e) {
|
|
121
|
+
console.error(`Unable to find selector ${selector} on ${todo.presentation_url}`)
|
|
122
|
+
}
|
|
117
123
|
|
|
118
124
|
if (verbose)
|
|
119
125
|
console.log(`Converting ${todo.md_file} to ${todo.pdf_file} using ${todo.presentation_url}`)
|