jasonzissman / TimeMe.js

A JavaScript library to accurately time how long a user views a web page, disregarding idle time and time when the tab or window is minimized.
MIT License
592 stars 124 forks source link

Disable idleTimeoutInSeconds with false #69

Open ciaranpflanagan opened 3 years ago

ciaranpflanagan commented 3 years ago

I needed the ability to disable the idleTimeoutInSeconds for some pages that often had very long videos on them. I think adding the ability to set idleTimeoutInSeconds: false when initialising TimeMe would be a useful feature.

This PR would also close #66. I think false is also more intuitive then -1.