Change default login background

This commit is contained in:
su-ex 2020-11-29 23:30:59 +01:00
parent 44c15db577
commit c1126b91dc
No known key found for this signature in database
GPG Key ID: D743C50C8B61984C
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 596 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 550 KiB

View File

@ -28,7 +28,7 @@ export default class VectorAuthPage extends React.PureComponent {
if (VectorAuthPage.welcomeBackgroundUrl) return VectorAuthPage.welcomeBackgroundUrl;
const brandingConfig = SdkConfig.get().branding;
VectorAuthPage.welcomeBackgroundUrl = "themes/element/img/backgrounds/lake.jpg";
VectorAuthPage.welcomeBackgroundUrl = "themes/element/img/backgrounds/ocean.jpg";
if (brandingConfig && brandingConfig.welcomeBackgroundUrl) {
if (Array.isArray(brandingConfig.welcomeBackgroundUrl)) {
const index = Math.floor(Math.random() * brandingConfig.welcomeBackgroundUrl.length);