mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
Auto darkmode
This commit is contained in:
@@ -18,11 +18,7 @@ const store = new Vuex.Store({
|
||||
collections: {},
|
||||
artifacts: {},
|
||||
env: {},
|
||||
settings: {
|
||||
theme: {
|
||||
darkMode: window.localStorage.getItem("darkMode") || false
|
||||
}
|
||||
}
|
||||
settings: {}
|
||||
},
|
||||
|
||||
mutations: {
|
||||
@@ -48,10 +44,6 @@ const store = new Vuex.Store({
|
||||
|
||||
SET_ERROR_MESSAGE(state, msg) {
|
||||
state.errorMessage = msg;
|
||||
},
|
||||
|
||||
SET_DARK_MODE(state, on) {
|
||||
state.settings.theme.darkMode = on;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user