Fix scalar token
This commit is contained in:
parent
abae43b65e
commit
546173d246
1 changed files with 1 additions and 0 deletions
|
@ -81,6 +81,7 @@ export default React.createClass({
|
||||||
this._scalarClient = new ScalarAuthClient();
|
this._scalarClient = new ScalarAuthClient();
|
||||||
this._scalarClient.getScalarToken().done((token) => {
|
this._scalarClient.getScalarToken().done((token) => {
|
||||||
// Append scalar_token as a query param
|
// Append scalar_token as a query param
|
||||||
|
this._scalarClient.scalarToken = token;
|
||||||
const u = url.parse(this.props.url);
|
const u = url.parse(this.props.url);
|
||||||
if (!u.search) {
|
if (!u.search) {
|
||||||
u.search = "?scalar_token=" + encodeURIComponent(token);
|
u.search = "?scalar_token=" + encodeURIComponent(token);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue