Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
privt00 committed Jun 18, 2024
1 parent ee98345 commit 6a4d32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ app.all("*", async (req, res) => {
return;
}

const data = JSON.parse(indexjs.renderdataeval);
const data = await indexjs.renderdataeval(req);
ejs.renderFile(
`./themes/${theme.name}/${theme.settings.pages[req._parsedUrl.pathname.slice(1)] ? theme.settings.pages[req._parsedUrl.pathname.slice(1)] : theme.settings.notfound}`,
data,
Expand Down

0 comments on commit 6a4d32b

Please sign in to comment.