Linting
This commit is contained in:
parent
e0e321783b
commit
42ba3ff410
1 changed files with 3 additions and 5 deletions
|
@ -65,11 +65,10 @@ 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
|
||||||
let 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);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
u.search += "&scalar_token=" + encodeURIComponent(token);
|
u.search += "&scalar_token=" + encodeURIComponent(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,8 +126,7 @@ export default React.createClass({
|
||||||
appTileBody = (
|
appTileBody = (
|
||||||
<div> Loading... </div>
|
<div> Loading... </div>
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
appTileBody = (
|
appTileBody = (
|
||||||
<div className="mx_AppTileBody">
|
<div className="mx_AppTileBody">
|
||||||
<iframe ref="appFrame" src={this.state.widgetUrl} allowFullScreen="true"></iframe>
|
<iframe ref="appFrame" src={this.state.widgetUrl} allowFullScreen="true"></iframe>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue