From 8b7abb6dd3f585b4ee4c68f937057fd7a2fee5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Thu, 13 Feb 2025 17:33:49 +0100 Subject: [PATCH] Don't use public index.html template --- public/index.html => index.html | 3 ++- src/main.tsx | 1 + vite.config.js | 7 +------ 3 files changed, 4 insertions(+), 7 deletions(-) rename public/index.html => index.html (86%) diff --git a/public/index.html b/index.html similarity index 86% rename from public/index.html rename to index.html index e14d79be..5f9ae1f7 100644 --- a/public/index.html +++ b/index.html @@ -8,10 +8,11 @@ name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> - <%- title %> + Element Call + diff --git a/src/main.tsx b/src/main.tsx index 4fc8c2c9..d88461a0 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -23,6 +23,7 @@ import { import { App } from "./App"; import { init as initRageshake } from "./settings/rageshake"; import { Initializer } from "./initializer"; +import "@matrix-org/matrix-sdk-crypto-wasm"; initRageshake().catch((e) => { logger.error("Failed to initialize rageshake", e); diff --git a/vite.config.js b/vite.config.js index c32ab0e7..bee32993 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,6 @@ Please see LICENSE in the repository root for full details. import { defineConfig, loadEnv } from "vite"; import svgrPlugin from "vite-plugin-svgr"; -import htmlTemplate from "vite-plugin-html-template"; import { codecovVitePlugin } from "@codecov/vite-plugin"; import { sentryVitePlugin } from "@sentry/vite-plugin"; import react from "@vitejs/plugin-react"; @@ -27,11 +26,6 @@ export default defineConfig(({ mode }) => { ref: true, }, }), - htmlTemplate.default({ - data: { - title: env.VITE_PRODUCT_NAME || "Element Call", - }, - }), codecovVitePlugin({ enableBundleAnalysis: process.env.CODECOV_TOKEN !== undefined, @@ -56,6 +50,7 @@ export default defineConfig(({ mode }) => { } return { + base: './', server: { port: 3000, },