Implement new unsupported browser page

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-04-23 15:10:40 +01:00
parent b7fa8a1f54
commit 30fa3a92f7
6 changed files with 545 additions and 120 deletions

View file

@ -156,8 +156,7 @@ export async function showError(title: string, messages?: string[]) {
export async function showIncompatibleBrowser(onAccept) {
const CompatibilityPage = (await import(
/* webpackChunkName: "compatibility-page" */
/* webpackPreload: true */
"matrix-react-sdk/src/components/structures/CompatibilityPage")).default;
"../components/structures/CompatibilityPage")).default;
window.matrixChat = ReactDOM.render(<CompatibilityPage onAccept={onAccept} />,
document.getElementById('matrixchat'));
}