Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double injection of the reload script #129

Open
vlrprbttst opened this issue Feb 9, 2016 · 0 comments
Open

double injection of the reload script #129

vlrprbttst opened this issue Feb 9, 2016 · 0 comments

Comments

@vlrprbttst
Copy link

i'm using browsersync on a patterlab project (https://github.com/pattern-lab/patternlab-php) and patternlab page is divided by a body for the patterlab controls and and iframe with the styleguide contents.

what happens is the js script is injected twice in the page, in both "bodies". and every time i do a css change, the page snaps back on top and it's annoying.

ccc

i've update to 2.0.0 to use https://www.browsersync.io/docs/options/#option-snippetOptions but i'm no expert of regex and i don't even know if i'm on the right path here.

the reload script should only be applied inside the iframe:

bbb

i know this is not a real issue but i can't seem to find a solution.
thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant