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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user