Remove startup notice code
The API method for this (get_start_notice()) is now deprecated
This commit is contained in:
parent
b78b644826
commit
5fa158f771
2 changed files with 0 additions and 18 deletions
14
js/app.js
14
js/app.js
|
@ -43,21 +43,10 @@ var App = React.createClass({
|
|||
pageArgs: typeof val !== 'undefined' ? val : null,
|
||||
errorInfo: null,
|
||||
modal: null,
|
||||
startNotice: null,
|
||||
updateUrl: null,
|
||||
isOldOSX: null,
|
||||
};
|
||||
},
|
||||
componentDidMount: function() {
|
||||
lbry.getStartNotice(function(notice) {
|
||||
if (notice) {
|
||||
this.setState({
|
||||
modal: 'startNotice',
|
||||
startNotice: notice
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
componentWillMount: function() {
|
||||
document.addEventListener('unhandledError', (event) => {
|
||||
this.alertError(event.detail);
|
||||
|
@ -212,9 +201,6 @@ var App = React.createClass({
|
|||
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} links={headerLinks} viewingPage={this.state.viewingPage} />
|
||||
{mainContent}
|
||||
</div>
|
||||
<Modal isOpen={this.state.modal == 'startNotice'} onConfirmed={this.closeModal}>
|
||||
{this.state.startNotice}
|
||||
</Modal>
|
||||
<Modal isOpen={this.state.modal == 'upgrade'} type="confirm" confirmButtonLabel="Upgrade" abortButtonLabel="Skip"
|
||||
onConfirmed={this.handleUpgradeClicked} onAborted={this.handleSkipClicked} >
|
||||
<p>Your version of LBRY is out of date and may be unreliable or insecure.</p>
|
||||
|
|
|
@ -124,10 +124,6 @@ lbry.getDaemonStatus = function (callback) {
|
|||
lbry.call('daemon_status', {}, callback);
|
||||
};
|
||||
|
||||
lbry.getStartNotice = function(callback) {
|
||||
lbry.call('get_start_notice', {}, callback);
|
||||
}
|
||||
|
||||
lbry.checkFirstRun = function(callback) {
|
||||
lbry.call('is_first_run', {}, callback);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue