mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +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() {
|
||||
const remoteIds: string[] = [];
|
||||
const removeIds: string[] = [];
|
||||
((window as any).bitwardenSafariAppRequests as
|
||||
Map<string, { resolve: (value?: unknown) => void, timeoutDate: Date }>)
|
||||
.forEach((v, key) => {
|
||||
if (v.timeoutDate < new Date()) {
|
||||
remoteIds.push(key);
|
||||
removeIds.push(key);
|
||||
}
|
||||
});
|
||||
remoteIds.forEach((id) => {
|
||||
removeIds.forEach((id) => {
|
||||
(window as any).bitwardenSafariAppRequests.delete(id);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user