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:
parent
3da2777e96
commit
b47c478c5c
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user