1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

comment on weirdness

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2018-02-28 01:03:58 +00:00
parent a897da7504
commit d66d66b2ec

View File

@@ -92,6 +92,9 @@ class Analytics {
*/ */
disable() { disable() {
this.trackEvent('Analytics', 'opt-out'); this.trackEvent('Analytics', 'opt-out');
// disableHeartBeatTimer is undocumented but exists in the piwik code
// the _paq.push method will result in an error being printed in the console
// if an unknown method signature is passed
this._paq.push(['disableHeartBeatTimer']); this._paq.push(['disableHeartBeatTimer']);
this.disabled = true; this.disabled = true;
} }