growthbook / devtools

GrowthBook DevTools extension for Chrome
MIT License
5 stars 5 forks source link

Add query param check #18

Closed bttf closed 1 year ago

bttf commented 1 year ago

The Visual Editor is currently being injected on all pages for browsers with the chrome extension installed. This is executing a lot of React code behind the scenes even if the user is not using the visual editor at all.

This PR adds a check to only mount the React app when the necessary query params (vc-id) are in the URL

Before:

image

After refresh w/ changes:

image