[ ] 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:
@ng-idle version: 2.x
Angular version: 2.x
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
I'm submitting a ... (check one with "x")
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:
@ng-idle version: 2.x
Angular version: 2.x
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
All browser
Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript.
Node:
node --version
=