Skip to content

Commit

Permalink
fix: get scheme from userColorScheme
Browse files Browse the repository at this point in the history
Releate to 628a0b, close #47
  • Loading branch information
WingLim committed Oct 4, 2021
1 parent 1ec0b26 commit 2c54bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/comments/provider/utterances.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 2c54bd4

Please sign in to comment.