BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.17k stars 755 forks source link

How do we stop it from reloading when the window is unfocused (blur) #2058

Open trusktr opened 9 months ago

trusktr commented 9 months ago

Issue details

The app keeps refreshing even when I don't change any files. It refreshes when I unfocus the window. How can we stop it from doing that?

Steps to reproduce/test case

Please provide necessary steps for reproduction of this issue, or better the reduced test case (without any external dependencies).

Please specify which version of Browsersync, node and npm you're running

Affected platforms

Browsersync use-case

If CLI, please paste the entire command below

{cli command here}

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

These are my options:

    {
        port: 54321,
        ui: {port: 54322},
        cors: true,
        watch: true,
        server: {baseDir: '.'},
    },

It keeps refreshing then I lose my state and have to re-do my actions to get back where I was.