This commit is contained in:
AAGaming
2024-06-27 00:21:32 -04:00
parent 2f8b5df007
commit 0cfb41755a
6 changed files with 13 additions and 13 deletions
+4 -4
View File
@@ -56,7 +56,7 @@ class ErrorBoundaryHook extends Logger {
shouldReport,
skipAllReporting: this.doNotReportErrors || this.disableReportingTimer,
});
if (!shouldReport) this.temporarilyDisableReporting();
if (!shouldReport) this.temporarilyDisableReporting();
// react#15069 workaround. this took 2 hours to figure out.
if (
args[0]?.message?.[3]?.[0] &&
@@ -95,14 +95,14 @@ class ErrorBoundaryHook extends Logger {
}
public temporarilyDisableReporting() {
this.debug("Reporting disabled for 30s due to a non-steam error.");
this.debug('Reporting disabled for 30s due to a non-steam error.');
if (this.disableReportingTimer) {
clearTimeout(this.disableReportingTimer);
}
this.disableReportingTimer = setTimeout(() => {
this.debug("Reporting re-enabled after 30s timeout.");
this.debug('Reporting re-enabled after 30s timeout.');
this.disableReportingTimer = 0;
}, 30000)
}, 30000);
}
deinit() {