mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: reset idle on tab focus (#27139)
When users come back to a tab we should consider they are not idle anymore.
This commit is contained in:
parent
d75339af76
commit
4553bb1717
@ -112,6 +112,8 @@ function setupNotifications(appEvents) {
|
||||
});
|
||||
|
||||
window.addEventListener("focus", function () {
|
||||
resetIdle();
|
||||
|
||||
if (!primaryTab) {
|
||||
primaryTab = true;
|
||||
keyValueStore.setItem(focusTrackerKey, mbClientId);
|
||||
|
Loading…
Reference in New Issue
Block a user