Skip to content

Commit

Permalink
moved the realityLink out of the popup until the bug is not solved
Browse files Browse the repository at this point in the history
  • Loading branch information
vecna committed Jan 6, 2019
1 parent db8fea0 commit 851c3dc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/chrome/popup/components/infoBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ const bo = chrome || browser;
const InfoBox = React.createClass({

render () {
const realitylink = config.WEB_ROOT + '/personal/' + token.get() + '/data';
const realitylink = `${config.WEB_ROOT}/personal/${token.authToken.get()}/data`;
console.log("Token retrieved composed", realitylink);
// this is a bug, we keep retrieving "unset" because the link is composed when the
// browser is started, and not when the link is effectively pressed. I don't know
// enough of React to make this happen in the right moment, that's why the line below
// (once under the "popupHello" entry, now is here commented:
//
// <T tag='h3' className='popTitle' msg="popupReality" args={realitylink} />
return (
<Card>
<CardHeader
Expand All @@ -21,7 +28,6 @@ const InfoBox = React.createClass({

<CardText>
<T msg="popupHello" />
<T tag='h3' className='popTitle' msg="popupReality" args={realitylink} />

<T msg="popupIntro" />
<ul>
Expand Down

0 comments on commit 851c3dc

Please sign in to comment.