fix: loadCrawlerStatus missing token — add var token = localStorage.getItem

token variable was undefined in loadCrawlerStatus() scope (only declared
inside IIFE auth guard, not globally). All API calls silently failed with
401. Fix: read token from localStorage at start of function, consistent
with getAuthHeaders() pattern used in all other load functions.
This commit is contained in:
Rene Fichtmueller 2026-04-02 16:00:27 +02:00
parent 69ef507d8a
commit 25839e731d

View File

@ -3527,6 +3527,7 @@ loadChangelog();
// ── CRAWLER INTELLIGENCE ──────────────────────────────────────────── // ── CRAWLER INTELLIGENCE ────────────────────────────────────────────
async function loadCrawlerStatus() { async function loadCrawlerStatus() {
var token = localStorage.getItem('tip_token') || '';
var status = null; var status = null;
var insights = null; var insights = null;
try { try {