Skip to content

Commit

Permalink
fix: HTML should be next to CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed May 10, 2023
1 parent c7d7b4c commit 9cefae1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/mermaid-puppeteer-renderer/src/index.ts
Expand Up @@ -40,11 +40,10 @@ export class PuppeteerMermaidRenderer implements MermaidRenderer {
try {
const mermaidHTMLPath = path.join(
__dirname,
"..",
"dist",
"mermaid_renderer.html"
);
const pathToLoad = url.pathToFileURL(mermaidHTMLPath).href;

await page.goto(pathToLoad);

const mermaidConfig = {
Expand Down

0 comments on commit 9cefae1

Please sign in to comment.