mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
fix remote id names
This commit is contained in:
parent
ecfeea37e8
commit
b30d4b7f4d
@ -69,15 +69,15 @@ export class SafariApp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static cleanupOldRequests() {
|
private static cleanupOldRequests() {
|
||||||
const remoteIds: string[] = [];
|
const removeIds: string[] = [];
|
||||||
((window as any).bitwardenSafariAppRequests as
|
((window as any).bitwardenSafariAppRequests as
|
||||||
Map<string, { resolve: (value?: unknown) => void, timeoutDate: Date }>)
|
Map<string, { resolve: (value?: unknown) => void, timeoutDate: Date }>)
|
||||||
.forEach((v, key) => {
|
.forEach((v, key) => {
|
||||||
if (v.timeoutDate < new Date()) {
|
if (v.timeoutDate < new Date()) {
|
||||||
remoteIds.push(key);
|
removeIds.push(key);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
remoteIds.forEach((id) => {
|
removeIds.forEach((id) => {
|
||||||
(window as any).bitwardenSafariAppRequests.delete(id);
|
(window as any).bitwardenSafariAppRequests.delete(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user