mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2026-10-27 08:21:32 +00:00
fix analytics plugin output
This commit is contained in:
1 parent
26e66bf7f4
commit
22276ef5b2
1 file changed
+1
-1
@@ -2,6 +2,6 @@ module.exports = {
|
||||
onPageRendered: async ({ html, file }) => {
|
||||
// Example: inject analytics script into each page
|
||||
const snippet = '\n<script>console.log("Page viewed: ' + file + '")</script>';
|
||||
return html.replace('</body>', `${snippet}</body>`);
|
||||
return { html: html.replace('</body>', `${snippet}</body>`) };
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user