Import RtsClient at top

pull/21833/head
Luke Barnard 2017-02-07 15:23:23 +00:00
parent af19ea8bb7
commit 3f9f59bb73
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import UserActivity from './UserActivity';
import Presence from './Presence';
import dis from './dispatcher';
import DMRoomMap from './utils/DMRoomMap';
import RtsClient from './RtsClient';
/**
* Called at startup, to attempt to build a logged-in Matrix session. It tries
@ -228,7 +229,7 @@ function _restoreFromLocalStorage() {
return false;
}
}
const RtsClient = require("./RtsClient");
let rtsClient = null;
export function initRtsClient(url) {
rtsClient = new RtsClient(url);