Merge remote-tracking branch 'origin/develop' into develop
commit
299a32fa98
|
@ -921,7 +921,7 @@ module.exports = React.createClass({
|
|||
|
||||
styleElements[theme].disabled = false;
|
||||
|
||||
let switchTheme = function() {
|
||||
const switchTheme = function() {
|
||||
const colors = Tinter.getCurrentColors();
|
||||
Object.values(styleElements).forEach((a) => {
|
||||
if (a == styleElements[theme]) return;
|
||||
|
@ -933,8 +933,7 @@ module.exports = React.createClass({
|
|||
|
||||
if (styleElements[theme].complete) {
|
||||
switchTheme();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
styleElements[theme].onload = () => {
|
||||
switchTheme();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue