Display startup message if provided by daemon

This commit is contained in:
Alex Liebowitz 2016-04-09 06:44:46 -04:00
parent 21ba8ae8b3
commit 8cf9395ea8
2 changed files with 11 additions and 0 deletions

View file

@ -514,6 +514,13 @@ var App = React.createClass({
viewingPage: 'home'
}
},
componentDidMount: function() {
lbry.getStartNotice(function(notice) {
if (notice) {
alert(notice);
}
});
},
handlePageChosen: function(page) {
this.setState({
viewingPage: page

View file

@ -69,6 +69,10 @@ lbry.daemonRunningStatus = function (callback) {
});
};
lbry.getStartNotice = function(callback) {
lbry.call('get_start_notice', {}, callback);
}
lbry.getSettings = function(callback) {
lbry.call('get_settings', {}, callback);
};