@farberg/reveal-template 1.0.65 → 1.0.67

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farberg/reveal-template",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "homepage": "https://github.com/pfisterer/reveal-template",
5
5
  "description": "Reveal.js template for Dennis' lectures",
6
6
  "main": "index.js",
@@ -17,7 +17,7 @@ function showToc(url, el) {
17
17
  fetch(url, { "cache": "no-store" })
18
18
  .then(res => res.text())
19
19
  .then(html => el.innerHTML = html)
20
- .catch(el.innerText = `Unable to load TOC from ${url}`)
20
+ .catch(e => console.log(`Unable to load TOC from ${url}`, e))
21
21
  }
22
22
 
23
23
  export default () => {
@@ -12,7 +12,7 @@ const cwd = process.cwd()
12
12
  const slides_dir = cwd
13
13
  const pdf_dir = path.join(cwd, '__pdfs__')
14
14
  const host = os.hostname()
15
- const port = 1256
15
+ const port = 1252
16
16
  const verbose = true
17
17
  const package_json = JSON.parse(fs.readFileSync('package.json'))
18
18
  const combined_pdf_name = combined_pdf(package_json)
@@ -112,11 +112,11 @@ async function convert_to_pdf_single(todo) {
112
112
  const browser = await puppeteer.launch({ headless: 'new' })
113
113
  const page = await browser.newPage();
114
114
 
115
- await page.goto(todo.presentation_url, { timeout: 5000, waitUntil: ['load', 'domcontentloaded'] });
115
+ await page.goto(todo.presentation_url, { timeout: 10000, waitUntil: ['load', 'domcontentloaded'] });
116
116
 
117
117
  const selector = 'div.lecturetitle > h1'
118
118
  try {
119
- await page.waitForSelector(selector, { timeout: 5000 })
119
+ await page.waitForSelector(selector, { timeout: 10000 })
120
120
  } catch (e) {
121
121
  console.error(`Unable to find selector ${selector} on ${todo.presentation_url}`)
122
122
  }