Problem: Currently, if a user has multiple tabs open with each tab running an instance of the GrowthBook JS SDK, the GrowthBook DevTools extension will behave unexpectedly. This is due to the DevTools extension indiscriminately selecting the first tab it finds to communicate with.
DevTools extension upon opening (syncs with current tab's GrowthBook SDK)
DevTools extension upon opening a 2nd tab with it's own GrowthBook SDK (extension syncs with recently opened tab)
**Proposed solution**: Ensure messages are contained between tab and content script and background script target the inspected window.
Problem: Currently, if a user has multiple tabs open with each tab running an instance of the GrowthBook JS SDK, the GrowthBook DevTools extension will behave unexpectedly. This is due to the DevTools extension indiscriminately selecting the first tab it finds to communicate with.
DevTools extension upon opening (syncs with current tab's GrowthBook SDK)
DevTools extension upon opening a 2nd tab with it's own GrowthBook SDK (extension syncs with recently opened tab)
**Proposed solution**: Ensure messages are contained between tab and content script and background script target the inspected window.
**Implementation:**
Related bug #39