fix: comments on spa should work (closes ) ()

* 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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 27 deletions
quartz/plugins

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))
`,
})
}