Add auth system, fix map defaults, controls overflow, fix latest-date ref
This commit is contained in:
+1
-6
@@ -1059,12 +1059,7 @@ async function saveAcceptedItems() {
|
||||
}
|
||||
});
|
||||
|
||||
// Get the date of the loaded data from the server
|
||||
let dataDate = '';
|
||||
try {
|
||||
const dateResp = await fetch('/api/latest-date');
|
||||
if (dateResp.ok) dataDate = (await dateResp.json()).date || '';
|
||||
} catch (_) {}
|
||||
const dataDate = new Date().toISOString().slice(0, 10).replace(/-/g, '');
|
||||
const prefix = [loadedCounty, loadedDataType, dataDate].filter(Boolean).join('-');
|
||||
|
||||
function triggerDownload(features, label) {
|
||||
|
||||
Reference in New Issue
Block a user