mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01:00
Reduce buffer time between page visibilities
This commit is contained in:
parent
bca205182e
commit
b027967168
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ function Notifications({ columnMode }) {
|
|||
let unsub;
|
||||
if (visible) {
|
||||
const timeDiff = Date.now() - lastHiddenTime.current;
|
||||
if (!lastHiddenTime.current || timeDiff > 1000 * 60) {
|
||||
if (!lastHiddenTime.current || timeDiff > 1000 * 3) {
|
||||
// 3 seconds
|
||||
loadUpdates({
|
||||
disableIdleCheck: true,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue