mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-07 17:23:05 +02:00
Calm down with the fetches
This commit is contained in:
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -13,7 +13,7 @@
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="/site.webmanifest" />
|
||||
<script type="module" crossorigin src="/assets/index-BeiXDnDV.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-DviEalHS.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CnRBRJ10.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -142,8 +142,8 @@ export function CrackerPanel({
|
||||
.catch(() => setUndecryptedPacketCount(null));
|
||||
};
|
||||
fetchCount();
|
||||
// Refresh periodically
|
||||
const interval = setInterval(fetchCount, 30000);
|
||||
// Refresh hourly (this is just for display; not critical to be up-to-date)
|
||||
const interval = setInterval(fetchCount, 3600000);
|
||||
return () => clearInterval(interval);
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user