diff --git a/js/app.js b/js/app.js index 1abf82668..6232b8461 100644 --- a/js/app.js +++ b/js/app.js @@ -187,10 +187,6 @@ var App = React.createClass({ case 'send': case 'receive': return <WalletPage viewingPage={this.state.viewingPage} />; - case 'send': - return <SendPage />; - case 'receive': - return <ReceivePage />; case 'show': return <DetailPage name={this.state.pageArgs} />; case 'publish': diff --git a/js/lbry.js b/js/lbry.js index e31486531..7f8458e12 100644 --- a/js/lbry.js +++ b/js/lbry.js @@ -351,7 +351,7 @@ lbry.loadJs = function(src, type, onload) newScriptTag.type = type; if (onload) { - newScript.onload = onload; + newScriptTag.onload = onload; } lbryScriptTag.parentNode.insertBefore(newScriptTag, lbryScriptTag); } diff --git a/js/page/publish.js b/js/page/publish.js index 3f90e2f0e..291aa4a05 100644 --- a/js/page/publish.js +++ b/js/page/publish.js @@ -351,6 +351,7 @@ var PublishPage = React.createClass({ } } }, + // Also getting a type warning here too render: function() { return ( <main ref="page"> diff --git a/js/page/wallet.js b/js/page/wallet.js index 39746838b..bbc0505a6 100644 --- a/js/page/wallet.js +++ b/js/page/wallet.js @@ -15,7 +15,7 @@ var AddressSection = React.createClass({ } lbry.getNewAddress((address) => { - localStorage.setItem('wallet_address', address); + window.localStorage.setItem('wallet_address', address); this.setState({ address: address, }); @@ -28,7 +28,7 @@ var AddressSection = React.createClass({ } }, componentWillMount: function() { - var address = localStorage.getItem('wallet_address'); + var address = window.localStorage.getItem('wallet_address'); if (address === null) { this._refreshAddress(); } else {