mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat: add support for giscus & utterances comments
This commit is contained in:
parent
93c8b577b8
commit
19d120019b
17 changed files with 333 additions and 99 deletions
|
@ -1,9 +0,0 @@
|
|||
(function () {
|
||||
const currentTheme = localStorage.getItem('theme');
|
||||
if (currentTheme) {
|
||||
document.documentElement.setAttribute('data-theme', currentTheme);
|
||||
} else {
|
||||
const isSystemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
document.documentElement.setAttribute('data-theme', isSystemDark ? 'dark' : 'light');
|
||||
}
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue