We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a235a commit f56acb9Copy full SHA for f56acb9
src/components/giscus.tsx
@@ -85,11 +85,10 @@ const GiscusComments: React.FC = () => {
85
86
// Use localStorage to get user's last theme or fallback to 'light'
87
const storedTheme =
88
- localStorage.getItem("theme") || (
89
- document.documentElement.getAttribute("data-theme") === "dark"
+ localStorage.getItem("theme") ||
+ (document.documentElement.getAttribute("data-theme") === "dark"
90
? "dark"
91
- : "light"
92
- );
+ : "light");
93
94
const script = document.createElement("script");
95
script.src = "https://giscus.app/client.js";
0 commit comments