-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick and dirty support for custom welcome pages. #2575
Conversation
console.log(error); | ||
this.setState({ page: "Couldn't load home page" }); | ||
} | ||
).then( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/then/done/
componentWillMount: function() { | ||
fetch(this.props.config.home_page).then( | ||
(response)=>{ | ||
return response.text(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NB. that this could be an error response from the server, although arguably it makes about as much sense to display the error page from the server as our own error message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could default to some default message, "Sorry, your welcome page could not be loaded"?
Riot is built on <a href="https://matrix.org">Matrix</a> - a new open protocol for interoperable and secure decentralised communication. | ||
<br/> | ||
To learn more, head over to <a href="https://matrix.org">Matrix.org</a> - and to better understand Riot, check out the official <a href="https://riot.im">Riot Website</a>. | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if this could be versioned somewhere else rather than living with the rest of the vector source (especially in the root dir). Ditto for the images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shall be kept on the RTS, so that solves that!
No description provided.