File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ /comments.css
2+ Access-Control-Allow-Origin: *
3+ Access-Control-Allow-Methods: GET
4+ Access-Control-Allow-Headers: Content-Type
Original file line number Diff line number Diff line change 1- import { GISCUS } from "@config" ;
1+ import { GISCUS , SITE } from "@config" ;
22import Giscus , { type Theme } from "@giscus/react" ;
33import { useEffect , useState } from "react" ;
44
@@ -9,7 +9,9 @@ interface CommentsProps {
99
1010export default function Comments ( {
1111 lightTheme = "light" ,
12- darkTheme = "https://blog.cloudti.de/comments.css" ,
12+ darkTheme = import . meta. env . DEV
13+ ? `${ window . location . origin } /comments.css`
14+ : `${ SITE . website } /comments.css` ,
1315} : CommentsProps ) {
1416 const [ theme , setTheme ] = useState ( ( ) => {
1517 const currentTheme = localStorage . getItem ( "theme" ) ;
You can’t perform that action at this time.
0 commit comments