Small bugfixes
This commit is contained in:
parent
8fd25af7a1
commit
96c8a25f83
|
@ -11,7 +11,6 @@ const UserProps = require('./user_property.js');
|
|||
// deps
|
||||
const _ = require('lodash');
|
||||
const moment = require('moment');
|
||||
const Log = require('./logger.js');
|
||||
|
||||
module.exports = class LoginServerModule extends ServerModule {
|
||||
constructor() {
|
||||
|
|
|
@ -14,7 +14,6 @@ const UserProps = require('./user_property.js');
|
|||
|
||||
const ConfigLoader = require('./config_loader');
|
||||
const { getConfigPath } = require('./config_util');
|
||||
const theme = require('./theme.js');
|
||||
|
||||
// deps
|
||||
const fs = require('graceful-fs');
|
||||
|
@ -420,9 +419,9 @@ function getRandomTheme() {
|
|||
}
|
||||
}
|
||||
function selectDefaultTheme(client) {
|
||||
const selectedTheme = theme.findMatching(client, Config().theme.default);
|
||||
const selectedTheme = findMatching(client, Config().theme.default);
|
||||
if (_.isNil(selectedTheme) || '*' === selectedTheme) {
|
||||
return theme.getRandomTheme() || '';
|
||||
return getRandomTheme() || '';
|
||||
} else {
|
||||
return selectedTheme;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue