This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user