mirror of
https://github.com/QwIT-Development/firka-extension.git
synced 2026-06-12 03:41:39 +02:00
Update timetable.js
This commit is contained in:
@@ -313,6 +313,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
let cachedTestData = null;
|
||||
let testDataTimestamp = 0;
|
||||
const TEST_DATA_CACHE_DURATION = 60000;
|
||||
|
||||
async function loadAllTestDataFromAPI() {
|
||||
const now = Date.now();
|
||||
if (cachedTestData && (now - testDataTimestamp) < TEST_DATA_CACHE_DURATION) {
|
||||
|
||||
Reference in New Issue
Block a user