Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit dc8c1a3

Browse files
committed
fix types
1 parent 45e1496 commit dc8c1a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/SessionLock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export async function getSessionLock(onNewInstance: () => Promise<void>): Promis
177177

178178
// and, once it has done so, stop pinging the lock.
179179
if (lockServicer !== null) {
180-
clearInterval(lockServicer);
180+
window.clearInterval(lockServicer);
181181
}
182182
window.localStorage.removeItem(SESSION_LOCK_CONSTANTS.STORAGE_ITEM_PING);
183183
window.localStorage.removeItem(SESSION_LOCK_CONSTANTS.STORAGE_ITEM_OWNER);
@@ -233,7 +233,7 @@ export async function getSessionLock(onNewInstance: () => Promise<void>): Promis
233233

234234
// claim the lock, and kick off a background process to service it every 5 seconds
235235
serviceLock();
236-
lockServicer = setInterval(serviceLock, 5000);
236+
lockServicer = window.setInterval(serviceLock, 5000);
237237

238238
// Now add a listener for other claimants to the lock.
239239
window.addEventListener("storage", onStorageEvent);

0 commit comments

Comments
 (0)