From eb6136b957ddc3b5bd0c2843876076bbb9e5083d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sun, 28 May 2017 11:26:41 +0100 Subject: [PATCH] remove dispatcher Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/Analytics.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Analytics.js b/src/Analytics.js index 9832013053..a39fc7250b 100644 --- a/src/Analytics.js +++ b/src/Analytics.js @@ -15,7 +15,6 @@ */ import MatrixClientPeg from './MatrixClientPeg'; -// import dis from './dispatcher'; function redact(str) { return str.replace(/#\/(room|user)\/(.+)/, "#/$1/"); @@ -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));