Skip to content

Commit

Permalink
timer
Browse files Browse the repository at this point in the history
  • Loading branch information
turtledreams committed Dec 9, 2024
1 parent 6ad48ec commit 0b0c4df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/CountlyClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class CountlyClass {
#contentEndPoint;
#inContentZone;
#contentZoneTimer;
#contentZoneTimerInterval;
#contentIframeID;
constructor(ob) {
this.#self = this;
Expand Down Expand Up @@ -216,6 +217,11 @@ constructor(ob) {
this.hcWarningCount = this.#getValueFromStorage(healthCheckCounterEnum.warningCount) || 0;
this.hcStatusCode = this.#getValueFromStorage(healthCheckCounterEnum.statusCode) || -1;
this.hcErrorMessage = this.#getValueFromStorage(healthCheckCounterEnum.errorMessage) || "";
this.#contentZoneTimerInterval = getConfig("content_zone_timer_interval", ob, null);

if (this.#contentZoneTimerInterval) {
this.#contentTimeInterval = Math.max(this.#contentZoneTimerInterval, 15) * 1000;
}

if (this.#maxCrashLogs && !this.maxBreadcrumbCount) {
this.maxBreadcrumbCount = this.#maxCrashLogs;
Expand Down Expand Up @@ -419,6 +425,9 @@ constructor(ob) {
if (this.#remoteConfigs) {
this.#log(logLevelEnums.DEBUG, "initialize, stored remote configs:[" + JSON.stringify(this.#remoteConfigs) + "]");
}
if (this.#contentZoneTimerInterval) {
this.#log(logLevelEnums.DEBUG, "initialize, content_zone_timer_interval:[" + this.#contentZoneTimerInterval + "]");
}
// functions, if provided, would be printed as true without revealing their content
this.#log(logLevelEnums.DEBUG, "initialize, 'getViewName' callback override provided:[" + (this.getViewName !== Countly.getViewName) + "]");
this.#log(logLevelEnums.DEBUG, "initialize, 'getSearchQuery' callback override provided:[" + (this.getSearchQuery !== Countly.getSearchQuery) + "]");
Expand Down

0 comments on commit 0b0c4df

Please sign in to comment.