From 63636fef1f32130079f7ce38bb21a25e37b80cb3 Mon Sep 17 00:00:00 2001
From: LIlGG <1103069291@qq.com>
Date: Fri, 10 Oct 2025 11:32:36 +0800
Subject: [PATCH] chore: remove tracking script from layout
Deleted the inclusion of the external tracking script in the Layout component, likely to improve privacy or simplify the page head.
---
app/root.tsx | 3 ---
1 file changed, 3 deletions(-)
diff --git a/app/root.tsx b/app/root.tsx
index 30aad1b..bdd6342 100644
--- a/app/root.tsx
+++ b/app/root.tsx
@@ -32,7 +32,6 @@ import { stripIndents } from './utils/strip-indent';
import 'virtual:uno.css';
import type { ComponentType } from 'react';
import { useState } from 'react';
-import { isProduction } from './lib/stores/settings';
// 定义连接设置类型
export interface ConnectionSettings {
@@ -119,7 +118,6 @@ const inlineThemeCode = stripIndents`
`;
export function Layout({ children }: { children: React.ReactNode }) {
- const production = useStore(isProduction);
const data = useRouteLoaderData<{
ENV: { OPERATING_ENV: string; MAX_UPLOAD_SIZE_MB: number };
}>('root');
@@ -137,7 +135,6 @@ export function Layout({ children }: { children: React.ReactNode }) {