From 9573e89463defaa22b3a0286b1cd0682b917117d Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 3 Mar 2023 16:35:26 +0100 Subject: [PATCH] [Dev] Fix typings --- src/global/actions/ui/misc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global/actions/ui/misc.ts b/src/global/actions/ui/misc.ts index 7f55d4c64..13667c736 100644 --- a/src/global/actions/ui/misc.ts +++ b/src/global/actions/ui/misc.ts @@ -603,7 +603,7 @@ addActionHandler('afterHangUp', (global): ActionReturnType => { reestablishMasterToSelf(); }); -let notificationInterval: NodeJS.Timeout | undefined; +let notificationInterval: number | undefined; const NOTIFICATION_INTERVAL = 500; @@ -625,7 +625,7 @@ addActionHandler('onTabFocusChange', (global, actions, payload): ActionReturnTyp if (isBlurred) { if (notificationInterval) clearInterval(notificationInterval); - notificationInterval = setInterval(() => { + notificationInterval = window.setInterval(() => { actions.updatePageTitle({ tabId, });