Questions on adding the comment system
Opened this issue · 0 comments
LobbyBoy-Dray commented
I learned from your code in src/components/Giscus.astro
that you use:
const currentTheme = localStorage.getItem("theme");
to ensure the theme of the comment block matches the blog theme each time a post page is entered. But the localStorage
cannot be accessed from the server. Hence, this design raised an error called "localStorage is not defined" on my computer. Can you please tell me how to solve this issue?