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

Enhancement/adding ability to reset idle #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Enhancement/adding ability to reset idle #41

wants to merge 3 commits into from

Conversation

caldwell619
Copy link

Hello,

I was using your library with great success in the browser for the application I was working on. However, when it came to unit testing the app with the timer, I had some issues. There was no way for the timer to reset ( that I could find ). Sending events to the DOM that would reset in a normal browser had no effect in the JSDom environment.

Perhaps I could have been doing it wrong, but I found success by adding a method to the gloval plugin, extending idle-js capabilities already in place.

I added the method, and wrote some documentation for the readme. If this isn't welcomed, or wanted, please disregard. I really like the lib and hope this is useful.

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

Successfully merging this pull request may close these issues.

None yet

1 participant