mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-18 04:07:03 +02:00
Fix method bindings
This commit is contained in:
parent
067886f5e8
commit
577e9ee0a3
@ -666,11 +666,11 @@ export default class CountlyAnalytics {
|
|||||||
return window.innerWidth > window.innerHeight ? Orientation.Landscape : Orientation.Portrait;
|
return window.innerWidth > window.innerHeight ? Orientation.Landscape : Orientation.Portrait;
|
||||||
};
|
};
|
||||||
|
|
||||||
private reportOrientation() {
|
private reportOrientation = () => {
|
||||||
this.track<IOrientationEvent>("[CLY]_orientation", {
|
this.track<IOrientationEvent>("[CLY]_orientation", {
|
||||||
mode: this.getOrientation(),
|
mode: this.getOrientation(),
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
private startTime() {
|
private startTime() {
|
||||||
if (!this.trackTime) {
|
if (!this.trackTime) {
|
||||||
@ -754,7 +754,7 @@ export default class CountlyAnalytics {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private endSession() {
|
private endSession = () => {
|
||||||
if (this.sessionStarted) {
|
if (this.sessionStarted) {
|
||||||
window.removeEventListener("resize", this.reportOrientation)
|
window.removeEventListener("resize", this.reportOrientation)
|
||||||
|
|
||||||
@ -765,7 +765,7 @@ export default class CountlyAnalytics {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.sessionStarted = false;
|
this.sessionStarted = false;
|
||||||
}
|
};
|
||||||
|
|
||||||
private onVisibilityChange = () => {
|
private onVisibilityChange = () => {
|
||||||
if (document.hidden) {
|
if (document.hidden) {
|
||||||
|
Loading…
Reference in New Issue
Block a user