1
0
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:
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() {
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);
});
}