fix remote id names

This commit is contained in:
Kyle Spearrin 2019-08-19 14:13:14 -04:00
parent ecfeea37e8
commit b30d4b7f4d
1 changed files with 3 additions and 3 deletions

View File

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