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

Auto Dungeon stops working while tab is unfocus #409

Open
HugoHartmann067 opened this issue Oct 31, 2024 · 2 comments
Open

Auto Dungeon stops working while tab is unfocus #409

HugoHartmann067 opened this issue Oct 31, 2024 · 2 comments

Comments

@HugoHartmann067
Copy link

On Chrome, if you enable auto-dungeon and unfocus the tab, the auto-dungeon will work for one or two minutes.
After that delay, it seems you can complete dungeon in time.

Auto battler doesn't have this problem to my knowledge.

This bug may come from the setInterval() in toggleAutoClickerLoop ?

@ixanza
Copy link

ixanza commented Nov 5, 2024

Chrome puts unfocused tabs to sleep after inactivity. You can try this steps to prevent putting the tab to sleep : https://docs.skyswitch.com/en/articles/1048-prevent-browser-tabs-going-to-sleep
If that doesn't work you can detach the tab on it's own, go to chrome://discards/ and set it to not discard, then don't minimise the tab, it can run on the background

@HugoHartmann067
Copy link
Author

I edit the script to use web worker instead of setInterval
It runs perfectly well foreground and background since so.
Should i open a pull request ?

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

2 participants