From 3246e93766db02c3169724ff7a13dbb87c846eab Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Mon, 9 May 2016 17:25:34 -0400 Subject: [PATCH] Make 1000 LBC notice only appear on home page --- js/app.js | 7 ------- js/page/home.js | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/js/app.js b/js/app.js index ac6d67509..08fea20d3 100644 --- a/js/app.js +++ b/js/app.js @@ -44,13 +44,6 @@ var App = React.createClass({ } }); }, - componentDidMount: function() { - lbry.getStartNotice(function(notice) { - if (notice) { - alert(notice); - } - }); - }, render: function() { if (this.state.viewingPage == 'home') { var content = ; diff --git a/js/page/home.js b/js/page/home.js index 914c24248..34b37870f 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -272,6 +272,13 @@ var TopBar = React.createClass({ }); var HomePage = React.createClass({ + componentDidMount: function() { + lbry.getStartNotice(function(notice) { + if (notice) { + alert(notice); + } + }); + }, render: function() { return (