Skip to content

Commit

Permalink
Merge pull request #6368 from vector-im/luke/force-gemini
Browse files Browse the repository at this point in the history
Force gemini on HomePage
  • Loading branch information
lukebarnard1 authored Mar 27, 2018
2 parents 0d25d33 + 7673d2a commit 13cc139
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/structures/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ limitations under the License.
'use strict';

import React from 'react';
import GeminiScrollbar from 'react-gemini-scrollbar';
import request from 'browser-request';
import { _t } from 'matrix-react-sdk/lib/languageHandler';
import sanitizeHtml from 'sanitize-html';
import sdk from 'matrix-react-sdk/lib';

module.exports = React.createClass({
displayName: 'HomePage',
Expand Down Expand Up @@ -99,11 +99,12 @@ module.exports = React.createClass({
);
}
else {
const GeminiScrollbarWrapper = sdk.getComponent("elements.GeminiScrollbarWrapper");
return (
<GeminiScrollbar autoshow={true} className="mx_HomePage">
<GeminiScrollbarWrapper autoshow={true} className="mx_HomePage">
<div className="mx_HomePage_body" dangerouslySetInnerHTML={{ __html: this.state.page }}>
</div>
</GeminiScrollbar>
</GeminiScrollbarWrapper>
);
}
}
Expand Down

0 comments on commit 13cc139

Please sign in to comment.