fix: bugs

This commit is contained in:
Gabe
2025-10-14 19:03:18 +08:00
parent 0a1abab475
commit 412fc87d1e
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export class TransboxManager {
this.#shadowContainer = this.#container.attachShadow({ mode: "closed" });
const emotionRoot = document.createElement("style");
const shadowRootElement = document.createElement("div");
shadowRootElement.classList.add(`${APP_CONSTS.boxID}_warpper notranslate`);
shadowRootElement.className = `${APP_CONSTS.boxID}_warpper notranslate`;
this.#shadowContainer.appendChild(emotionRoot);
this.#shadowContainer.appendChild(shadowRootElement);
const cache = createCache({