fix: add log
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m32s

This commit is contained in:
Hewston Fox
2026-03-18 21:44:42 +02:00
parent c74643263a
commit e560444a82
2 changed files with 5 additions and 2 deletions

View File

@@ -2,7 +2,6 @@ import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import { RouterProvider, createRouter } from "@tanstack/react-router";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import eruda from "eruda";
import i18n from "@/i18n";
import tg from "@/tg";
@@ -19,7 +18,10 @@ declare module "@tanstack/react-router" {
}
}
if (import.meta.env.MODE !== "production") eruda.init();
if (import.meta.env.MODE !== "production") {
const { default: eruda } = await import("eruda");
eruda.init();
}
tg.init();
i18n.init();

View File

@@ -9,6 +9,7 @@ export type StorageKey = (typeof STORAGE_KEYS)[keyof typeof STORAGE_KEYS];
const IS_REAL_TG = Boolean(window?.Telegram?.WebApp);
if (!IS_REAL_TG) {
console.log("Mocking Telegram Env");
tg.mockTelegramEnv({
launchParams: {
tgWebAppData: new URLSearchParams({