mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
remove dispatcher
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
f93fd1c408
commit
eb6136b957
@ -15,7 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import MatrixClientPeg from './MatrixClientPeg';
|
import MatrixClientPeg from './MatrixClientPeg';
|
||||||
// import dis from './dispatcher';
|
|
||||||
|
|
||||||
function redact(str) {
|
function redact(str) {
|
||||||
return str.replace(/#\/(room|user)\/(.+)/, "#/$1/<redacted>");
|
return str.replace(/#\/(room|user)\/(.+)/, "#/$1/<redacted>");
|
||||||
@ -31,14 +30,8 @@ class Analytics {
|
|||||||
|
|
||||||
this.tracker.enableHeartBeatTimer();
|
this.tracker.enableHeartBeatTimer();
|
||||||
this.tracker.enableLinkTracking(true);
|
this.tracker.enableLinkTracking(true);
|
||||||
|
|
||||||
// dis.register(this._onAction.bind(this));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// _onAction(payload) {
|
|
||||||
// this.trackEvent('Dispatcher', payload.action);
|
|
||||||
// }
|
|
||||||
|
|
||||||
async trackPageChange() {
|
async trackPageChange() {
|
||||||
if (!this.tracker) return;
|
if (!this.tracker) return;
|
||||||
this.tracker.trackPageView(redact(window.location.hash));
|
this.tracker.trackPageView(redact(window.location.hash));
|
||||||
|
Loading…
Reference in New Issue
Block a user