mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Better conformity to JS linter
This commit is contained in:
parent
3a551f2da5
commit
b3f3126583
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export default class VectorAuthPage extends React.PureComponent {
|
|||
let backgroundUrl = "themes/riot/img/backgrounds/valley.jpg";
|
||||
if (brandingConfig && brandingConfig.welcomeBackgroundUrl) {
|
||||
if (Array.isArray(brandingConfig.welcomeBackgroundUrl)) {
|
||||
backgroundUrl = brandingConfig.welcomeBackgroundUrl[ Math.floor(Math.random() * brandingConfig.welcomeBackgroundUrl.length)];
|
||||
backgroundUrl = brandingConfig.welcomeBackgroundUrl[Math.floor(Math.random() * brandingConfig.welcomeBackgroundUrl.length)];
|
||||
} else {
|
||||
backgroundUrl = brandingConfig.welcomeBackgroundUrl;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue