1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

fix remote id names

This commit is contained in:
Kyle Spearrin 2019-08-19 14:13:14 -04:00
parent ecfeea37e8
commit b30d4b7f4d

View File

@ -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);
}); });
} }