Web:Common:Store: remove change theme method from settings store
This commit is contained in:
parent
a16a77d873
commit
4d65b5fcc8
@ -428,16 +428,6 @@ class SettingsStore {
|
||||
this.buildVersionInfo.documentServer = "6.4.1";
|
||||
};
|
||||
|
||||
changeTheme = () => {
|
||||
const currentTheme =
|
||||
JSON.stringify(this.theme) === JSON.stringify(Base) ? Dark : Base;
|
||||
localStorage.setItem(
|
||||
"theme",
|
||||
JSON.stringify(this.theme) === JSON.stringify(Base) ? "Dark" : "Base"
|
||||
);
|
||||
this.theme = currentTheme;
|
||||
};
|
||||
|
||||
setTheme = (theme) => {
|
||||
this.theme = themes[theme];
|
||||
localStorage.setItem("theme", theme);
|
||||
|
Loading…
Reference in New Issue
Block a user