You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
fix lint
This commit is contained in:
@ -921,7 +921,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
styleElements[theme].disabled = false;
|
styleElements[theme].disabled = false;
|
||||||
|
|
||||||
let switchTheme = function() {
|
const switchTheme = function() {
|
||||||
const colors = Tinter.getCurrentColors();
|
const colors = Tinter.getCurrentColors();
|
||||||
Object.values(styleElements).forEach((a) => {
|
Object.values(styleElements).forEach((a) => {
|
||||||
if (a == styleElements[theme]) return;
|
if (a == styleElements[theme]) return;
|
||||||
@ -933,8 +933,7 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
if (styleElements[theme].complete) {
|
if (styleElements[theme].complete) {
|
||||||
switchTheme();
|
switchTheme();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
styleElements[theme].onload = () => {
|
styleElements[theme].onload = () => {
|
||||||
switchTheme();
|
switchTheme();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user