mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 00:11:28 +00:00
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,
|
pageArgs: typeof val !== 'undefined' ? val : null,
|
||||||
errorInfo: null,
|
errorInfo: null,
|
||||||
modal: null,
|
modal: null,
|
||||||
startNotice: null,
|
|
||||||
updateUrl: null,
|
updateUrl: null,
|
||||||
isOldOSX: null,
|
isOldOSX: null,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
componentDidMount: function() {
|
|
||||||
lbry.getStartNotice(function(notice) {
|
|
||||||
if (notice) {
|
|
||||||
this.setState({
|
|
||||||
modal: 'startNotice',
|
|
||||||
startNotice: notice
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
document.addEventListener('unhandledError', (event) => {
|
document.addEventListener('unhandledError', (event) => {
|
||||||
this.alertError(event.detail);
|
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} />
|
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} links={headerLinks} viewingPage={this.state.viewingPage} />
|
||||||
{mainContent}
|
{mainContent}
|
||||||
</div>
|
</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"
|
<Modal isOpen={this.state.modal == 'upgrade'} type="confirm" confirmButtonLabel="Upgrade" abortButtonLabel="Skip"
|
||||||
onConfirmed={this.handleUpgradeClicked} onAborted={this.handleSkipClicked} >
|
onConfirmed={this.handleUpgradeClicked} onAborted={this.handleSkipClicked} >
|
||||||
<p>Your version of LBRY is out of date and may be unreliable or insecure.</p>
|
<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.call('daemon_status', {}, callback);
|
||||||
};
|
};
|
||||||
|
|
||||||
lbry.getStartNotice = function(callback) {
|
|
||||||
lbry.call('get_start_notice', {}, callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
lbry.checkFirstRun = function(callback) {
|
lbry.checkFirstRun = function(callback) {
|
||||||
lbry.call('is_first_run', {}, callback);
|
lbry.call('is_first_run', {}, callback);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue