Use gruvbox-dark theme for utterances

This commit is contained in:
Dave Gallant
2024-01-02 14:49:36 -05:00
parent 3b8e125d80
commit 8af61db534

View File

@@ -10,7 +10,7 @@
var getTheme = window.localStorage && window.localStorage.getItem("theme"); var getTheme = window.localStorage && window.localStorage.getItem("theme");
getTheme = getTheme == null ? 'dark' : getTheme; getTheme = getTheme == null ? 'dark' : getTheme;
let theme = getTheme === 'dark' ? 'github-dark' : 'github-light'; let theme = getTheme === 'dark' ? 'gruvbox-dark' : 'github-light';
let s = document.createElement('script'); let s = document.createElement('script');
s.src = 'https://utteranc.es/client.js'; s.src = 'https://utteranc.es/client.js';
s.setAttribute('repo', '{{ print $username "/" $repository }}'); s.setAttribute('repo', '{{ print $username "/" $repository }}');