mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Better conformity to JS linter
This commit is contained in:
parent
3a551f2da5
commit
b3f3126583
@ -30,7 +30,7 @@ export default class VectorAuthPage extends React.PureComponent {
|
|||||||
let backgroundUrl = "themes/riot/img/backgrounds/valley.jpg";
|
let backgroundUrl = "themes/riot/img/backgrounds/valley.jpg";
|
||||||
if (brandingConfig && brandingConfig.welcomeBackgroundUrl) {
|
if (brandingConfig && brandingConfig.welcomeBackgroundUrl) {
|
||||||
if (Array.isArray(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 {
|
} else {
|
||||||
backgroundUrl = brandingConfig.welcomeBackgroundUrl;
|
backgroundUrl = brandingConfig.welcomeBackgroundUrl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user