diff --git a/app/app.vue b/app/app.vue index 90c876f..83cfc8c 100644 --- a/app/app.vue +++ b/app/app.vue @@ -27,7 +27,8 @@ const primaryRgb = hexToRgb(primaryColor); // proper head script entries to avoid inserting raw HTML into a script // element (which causes JS parse errors like "Unexpected token '<'"). const traceRaw = siteConfig.traceConfig?.script || ""; -const traceScripts = [] as any[]; +type TraceScript = { src?: string; children?: string; type?: string }; +const traceScripts: TraceScript[] = []; if (typeof traceRaw === "string" && traceRaw.trim()) { // find all