1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-03-13 13:49:37 +01:00

[PM-6921] Incorporating method for ensuring that we clear the Map datastructure when the page details are being removed

This commit is contained in:
Cesar Gonzalez 2024-03-19 09:51:48 -05:00
parent 3da2777e96
commit b47c478c5c
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -112,6 +112,11 @@ class OverlayBackground implements OverlayBackgroundInterface {
* @param tabId - Used to reference the page details of a specific tab
*/
removePageDetails(tabId: number) {
if (!this.pageDetailsForTab[tabId]) {
return;
}
this.pageDetailsForTab[tabId].clear();
delete this.pageDetailsForTab[tabId];
}