fix: comments on spa should work (closes #1296) (#1298)

* fix comments on spa

* fix giscus
This commit is contained in:
Jacky Zhao
2024-07-30 01:13:13 -07:00
committed by GitHub
parent e1a9661be7
commit 6264f5685c
3 changed files with 28 additions and 27 deletions

View File

@ -28,10 +28,10 @@ export function getStaticResourcesFromPlugins(ctx: BuildCtx) {
loadTime: "afterDOMReady",
contentType: "inline",
script: `
const socket = new WebSocket('${wsUrl}')
// reload(true) ensures resources like images and scripts are fetched again in firefox
socket.addEventListener('message', () => document.location.reload(true))
`,
const socket = new WebSocket('${wsUrl}')
// reload(true) ensures resources like images and scripts are fetched again in firefox
socket.addEventListener('message', () => document.location.reload(true))
`,
})
}