Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WingLim/hugo-tania.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWingLim <643089849@qq.com>2021-10-04 04:31:02 +0300
committerWingLim <643089849@qq.com>2021-10-04 04:31:02 +0300
commit2c54bd43e936f365230616c22593161faecae302 (patch)
treec78c968d2e3557ee2d8323f667c8a08e47f642b3
parent1ec0b265c10813fe602d9a15aeaef5ddee3f8c3e (diff)
fix: get scheme from userColorScheme
Releate to 628a0b, close #47
-rw-r--r--layouts/partials/comments/provider/utterances.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/comments/provider/utterances.html b/layouts/partials/comments/provider/utterances.html
index 7ee2ace..4e4d3a6 100644
--- a/layouts/partials/comments/provider/utterances.html
+++ b/layouts/partials/comments/provider/utterances.html
@@ -31,7 +31,7 @@
addEventListener('message', event => {
if (event.origin !== 'https://utteranc.es') return;
- setUtterancesTheme(document.documentElement.dataset.scheme)
+ setUtterancesTheme(document.documentElement.dataset.userColorScheme)
});
window.addEventListener('onColorSchemeChange', (e) => {