mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 04:26:01 +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 systemThemeStore = writable(darkModeMediaQuery?.matches ? 'theme-dark' : 'theme-light');
|
||||
export const systemThemeStore = writable(darkModeMediaQuery?.matches ? 'theme-dark' : 'theme-light');
|
||||
|
||||
if (darkModeMediaQuery) {
|
||||
darkModeMediaQuery.addEventListener('change', e => {
|
||||
|
||||
Reference in New Issue
Block a user