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

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Aug 22, 2023
1 parent 9de5461 commit ae083c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/SessionLock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export async function getSessionLock(onNewInstance: () => Promise<void>): Promis

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

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

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

0 comments on commit ae083c4

Please sign in to comment.