Browser activity monitor.
import ActivityMonitor from '@cfware/activity-monitor';
const activityMonitor = new ActivityMonitor(() => {
if (!activityMonitor.activity) {
console.log('Inactive');
activityMonitor.disable();
}
});
activityMonitor.enable();