Nul-led / bevy_web_keepalive

Bevy plugins to keep a bevy app running in the browser despite not being visible
MIT License
13 stars 2 forks source link

On tab close, webworker refuses to stop #14

Open simbleau opened 3 weeks ago

simbleau commented 3 weeks ago

When you close your chrome tab, it doesn't close on the first click because there's an active process. We need a way to fix this

Nul-led commented 3 weeks ago

I dont seem to be getting this issue on ubuntu/brave

simbleau commented 2 weeks ago

For more context, I use trunk to build my game. Trunk will refresh the page whenever a hotreload change was made, and that will often cause a panic.

If a panic occurs, the webworker still continues to run.

At the very least if we de-register the webworker on panic, it shouldn't be causing me too much headache.

image