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 b8e9d8f commit 56efa35Copy full SHA for 56efa35
1 file changed
hooks/99_generatePdf.js
@@ -17,7 +17,7 @@ module.exports = {
17
const browser = await puppeteer.launch({args: ['--no-sandbox', '--disable-setuid-sandbox']});
18
const page = await browser.newPage();
19
const fullPath = path.resolve(targetDir, 'index.html');
20
- const fileUrl = `file:///${fullPath.replace(/\\/g, '/')}`;
+ const fileUrl = `file:///${fullPath.replaceAll('\\', '/')}`;
21
// Go to prepared page with documentation
22
await page.goto(fileUrl, { waitUntil: 'networkidle0' });
23
0 commit comments