diff options
author | WingLim <643089849@qq.com> | 2021-10-04 04:31:02 +0300 |
---|---|---|
committer | WingLim <643089849@qq.com> | 2021-10-04 04:31:02 +0300 |
commit | 2c54bd43e936f365230616c22593161faecae302 (patch) | |
tree | c78c968d2e3557ee2d8323f667c8a08e47f642b3 | |
parent | 1ec0b265c10813fe602d9a15aeaef5ddee3f8c3e (diff) |
fix: get scheme from userColorScheme
Releate to 628a0b, close #47
-rw-r--r-- | layouts/partials/comments/provider/utterances.html | 2 |
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) => { |