Fix loading compound

This commit is contained in:
Michael Telatynski
2025-12-02 09:40:02 +00:00
parent c430d786e7
commit ae17873568
8 changed files with 23 additions and 0 deletions
+3
View File
@@ -6,6 +6,7 @@ Please see LICENSE files in the repository root for full details.
*/
import { ThemeProvider } from "styled-components";
import compound from "@vector-im/compound-web/dist/style.css" with { type: "css" };
import type { Module, Api, ModuleFactory } from "@element-hq/element-web-module-api";
import Translations from "./translations.json";
@@ -21,6 +22,8 @@ class BannerModule implements Module {
public constructor(private api: Api) {}
public async load(): Promise<void> {
document.adoptedStyleSheets.push(compound);
this.api.i18n.register(Translations);
try {
+1
View File
@@ -6,3 +6,4 @@ Please see LICENSE files in the repository root for full details.
*/
/// <reference types="vite-plugin-svgr/client" />
/// <reference types="@arcmantle/vite-plugin-import-css-sheet/client" />