Skip to content

Commit 1834a8b

Browse files
committed
revert
1 parent b4b273f commit 1834a8b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/contexts/MainContextProvider/index.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import React, { useReducer, createContext } from 'react';
22
import MainReducer from '../../reducers/MainReducer';
33

4-
const darkThemeMq = typeof window !== 'undefined' && window.matchMedia('(prefers-color-scheme: dark)').matches;
5-
const dark = darkThemeMq ? 1 : 0;
6-
7-
const themeIndex = typeof window !== 'undefined' && localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : dark;
4+
const themeIndex = typeof window !== 'undefined' && localStorage.themeIndex ? parseFloat(localStorage.themeIndex) : 0;
85
const themeColorIndex = typeof window !== 'undefined' && localStorage.themeColorIndex
96
? parseFloat(localStorage.themeColorIndex)
107
: 0;

0 commit comments

Comments
 (0)