1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00: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

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];
}