moribvndvs / ng2-idle

Responding to idle users in Angular (not AngularJS) applications.
https://moribvndvs.github.io/ng2-idle
Apache License 2.0
315 stars 128 forks source link

SetTimeout is throwing error #60

Open devendrar opened 6 years ago

devendrar commented 6 years ago

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior setTimeout is throwing error even when passing valid positive number in seconds. idle.setTimeout(10);

throw new Error('\'seconds\' can only be \'false\' or a positive number.');

Expected behavior It should not throw error if it passes correct value.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment: