remove dispatcher

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-05-28 11:26:41 +01:00
parent f93fd1c408
commit eb6136b957

View file

@ -15,7 +15,6 @@
*/
import MatrixClientPeg from './MatrixClientPeg';
// import dis from './dispatcher';
function redact(str) {
return str.replace(/#\/(room|user)\/(.+)/, "#/$1/<redacted>");
@ -31,14 +30,8 @@ class Analytics {
this.tracker.enableHeartBeatTimer();
this.tracker.enableLinkTracking(true);
// dis.register(this._onAction.bind(this));
}
// _onAction(payload) {
// this.trackEvent('Dispatcher', payload.action);
// }
async trackPageChange() {
if (!this.tracker) return;
this.tracker.trackPageView(redact(window.location.hash));