Import RtsClient at top

This commit is contained in:
Luke Barnard 2017-02-07 15:23:23 +00:00
parent af19ea8bb7
commit 3f9f59bb73

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);