malekim / v-idle

A Vue.js plugin to detect idle/non-active users
https://malekim.github.io/v-idle/
MIT License
70 stars 8 forks source link

Update vidle.ts #39

Closed deidyomega closed 9 months ago

deidyomega commented 9 months ago

We need to know when the timer was cleared (something happened).

The problem is, when the page is closed, the idle timer is destroyed, so when the page reopens, we dont know how long its been since they've been active. There are other use cases for this too.

https://github.com/malekim/v-idle/issues/31

Lastly, if you don't plan on updating this package, we use this at my company, and I'm happy to help with the outstanding issues if you'd like.

(PS: Sorry for the double PR)

deidyomega commented 9 months ago

All requested changes complete

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (475d923) 100.00% compared to head (282eab5) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #39 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 1 1 Lines 54 55 +1 Branches 6 6 ========================================= + Hits 54 55 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

deidyomega commented 9 months ago

Looks like its missing, "SLACK_WEBHOOK" not sure environmental variable.