Fix comments theme

This commit is contained in:
Dave Gallant
2024-01-02 11:47:50 -05:00
parent 58ebcc7de5
commit 8683d699e1
6 changed files with 1575 additions and 971 deletions

View File

@@ -7,8 +7,8 @@
<script>
// load utteranc comment
var getTheme = window.localStorage && window.localStorage.getItem("theme-storage");
getTheme = getTheme == null ? 'light' : getTheme;
var getTheme = window.localStorage && window.localStorage.getItem("theme");
getTheme = getTheme == null ? 'dark' : getTheme;
let theme = getTheme === 'dark' ? 'github-dark' : 'github-light';
let s = document.createElement('script');