fix: bugs
This commit is contained in:
@@ -80,7 +80,7 @@ async function showFab(translator) {
|
|||||||
const shadowContainer = $action.attachShadow({ mode: "closed" });
|
const shadowContainer = $action.attachShadow({ mode: "closed" });
|
||||||
const emotionRoot = document.createElement("style");
|
const emotionRoot = document.createElement("style");
|
||||||
const shadowRootElement = document.createElement("div");
|
const shadowRootElement = document.createElement("div");
|
||||||
shadowRootElement.classList.add(`${APP_CONSTS.fabID}_warpper notranslate`);
|
shadowRootElement.className = `${APP_CONSTS.fabID}_warpper notranslate`;
|
||||||
shadowContainer.appendChild(emotionRoot);
|
shadowContainer.appendChild(emotionRoot);
|
||||||
shadowContainer.appendChild(shadowRootElement);
|
shadowContainer.appendChild(shadowRootElement);
|
||||||
const cache = createCache({
|
const cache = createCache({
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export class TransboxManager {
|
|||||||
this.#shadowContainer = this.#container.attachShadow({ mode: "closed" });
|
this.#shadowContainer = this.#container.attachShadow({ mode: "closed" });
|
||||||
const emotionRoot = document.createElement("style");
|
const emotionRoot = document.createElement("style");
|
||||||
const shadowRootElement = document.createElement("div");
|
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(emotionRoot);
|
||||||
this.#shadowContainer.appendChild(shadowRootElement);
|
this.#shadowContainer.appendChild(shadowRootElement);
|
||||||
const cache = createCache({
|
const cache = createCache({
|
||||||
|
|||||||
Reference in New Issue
Block a user