mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 12:34:38 +00:00
fix(cookies): coerce pre_consent_hits to int + await loadCrossSite in refresh (ref #749)
This commit is contained in:
parent
1f5c6ed3e3
commit
5cc97b1aea
|
|
@ -817,7 +817,7 @@
|
|||
const sites = (t.sites || []).join(', ');
|
||||
const seen = t.last_seen ? new Date(t.last_seen * 1000).toLocaleString() : '-';
|
||||
const pc = t.pre_consent_hits > 0
|
||||
? `<span class="badge badge-red">${t.pre_consent_hits}</span>` : '0';
|
||||
? `<span class="badge badge-red">${Number(t.pre_consent_hits) | 0}</span>` : '0';
|
||||
return `<tr>
|
||||
<td><strong>${esc(t.tracker_domain)}</strong></td>
|
||||
<td><span class="badge badge-cyan" title="${esc(sites)}">${t.site_count}</span></td>
|
||||
|
|
@ -1002,8 +1002,7 @@
|
|||
}
|
||||
|
||||
async function refresh() {
|
||||
await Promise.all([loadStatus(), loadStats(), loadViolationsPreview()]);
|
||||
loadCrossSite();
|
||||
await Promise.all([loadStatus(), loadStats(), loadViolationsPreview(), loadCrossSite()]);
|
||||
}
|
||||
|
||||
// Initial load
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user