From 851c3dc87ad253eea2ef1bff6c626fc1d23ae4fd Mon Sep 17 00:00:00 2001 From: Claudio Agosti Date: Sun, 6 Jan 2019 16:14:48 +0100 Subject: [PATCH] moved the realityLink out of the popup until the bug is not solved --- src/chrome/popup/components/infoBox.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/chrome/popup/components/infoBox.js b/src/chrome/popup/components/infoBox.js index 4cb6895..a94c0ab 100644 --- a/src/chrome/popup/components/infoBox.js +++ b/src/chrome/popup/components/infoBox.js @@ -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: + // + // return ( -