mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 11:56:00 +00:00
SYNC: fix
This commit is contained in:
committed by
Diflow
parent
68ef50ca46
commit
0a694eea8a
@@ -28,7 +28,7 @@ export interface TabDefinition {
|
|||||||
|
|
||||||
const darkModeMediaQuery = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
const darkModeMediaQuery = window.matchMedia ? window.matchMedia('(prefers-color-scheme: dark)') : null;
|
||||||
|
|
||||||
const systemThemeStore = writable(darkModeMediaQuery?.matches ? 'theme-dark' : 'theme-light');
|
export const systemThemeStore = writable(darkModeMediaQuery?.matches ? 'theme-dark' : 'theme-light');
|
||||||
|
|
||||||
if (darkModeMediaQuery) {
|
if (darkModeMediaQuery) {
|
||||||
darkModeMediaQuery.addEventListener('change', e => {
|
darkModeMediaQuery.addEventListener('change', e => {
|
||||||
|
|||||||
Reference in New Issue
Block a user