Skip to content

Commit

Permalink
Fix delivery of kind-level index pages
Browse files Browse the repository at this point in the history
  • Loading branch information
maxg committed Sep 2, 2020
1 parent 4e1eab6 commit 1991e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ let BROWSER: Promise<Browser>|null = null;

async function doRender(file: string, path: string, src: string, out: string) {
const [ kind, handout, part ] = `${path}/${file.replace(/(index)?\.s?html/, '')}`.split('/');
const deliver = `?handout-deliver=${kind}/${handout}/${part || ''}/`;
const deliver = `?handout-deliver=${kind}/${handout || 'index'}/${part || ''}/`;
if ( ! BROWSER) {
BROWSER = Chromium.executablePath.then(executablePath => Chromium.puppeteer.launch({
args: Chromium.args,
Expand Down

0 comments on commit 1991e82

Please sign in to comment.