How to detect if miner is running on site in another tab
I'm looking at https://coinhive.com/documentation/miner#miner-start but I'm not really sure of how to do this properly. I'm working on a site which I want to work only if the miner is running (and not being blocked in some way), but I currently have not figured out a solution for when a user has multiple tabs open.

Right now I'm checking every second if getHashesPerSecond() > 0 and if it isn't I display a message and disable all content from being accessible. It works unless the user has two tabs. The one that is no longer mining will display this message and the page will be unusable. `FORCE_MULTI_TAB` isn't really an option either because I do not want to use more than a certain percentage of the user's CPU.

Anyone have any ideas?