Skip to content

Commit 4c30c89

Browse files
committed
fix(build): use ESM window type for setTimeout instead of implicit global usage.
1 parent 08ff6d4 commit 4c30c89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typescript-packages/client/src/hooks/error-boundary-hook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ErrorBoundaryHook extends Logger {
9898
if (this.disableReportingTimer) {
9999
clearTimeout(this.disableReportingTimer);
100100
}
101-
this.disableReportingTimer = setTimeout(() => {
101+
this.disableReportingTimer = window.setTimeout(() => {
102102
this.debug('Reporting re-enabled after 30s timeout.');
103103
this.disableReportingTimer = 0;
104104
}, 30000);

typescript-packages/client/src/hooks/toaster-hook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Toaster extends Logger {
131131
},
132132
};
133133
if (toast.expiration) {
134-
expirationTimeout = setTimeout(() => {
134+
expirationTimeout = window.setTimeout(() => {
135135
self.debug('Dismissing expired toast', toast);
136136
try {
137137
group && window.NotificationStore.RemoveGroupFromTray(group);

0 commit comments

Comments
 (0)