There was a bug where if there were multiple instances of a Tab Search Modal open in different windows and they received an update from the background script, the inCurrentWindow would be set based on the actual currently focused window, not on the tab/window that's receiving the update. With this change, an optional parameter was added and if set, the currentWindowId variable would be set to the windowId of the provided tab.
Type of changes made
[x] Bug fix (non-breaking change which fixes an issue)
Description
There was a bug where if there were multiple instances of a Tab Search Modal open in different windows and they received an update from the background script, the
inCurrentWindow
would be set based on the actual currently focused window, not on the tab/window that's receiving the update. With this change, an optional parameter was added and if set, thecurrentWindowId
variable would be set to thewindowId
of the provided tab.Type of changes made
What changes were made
See above