Fix ImageZoom, Vencord Notifications & ReactErrorDecoder

This commit is contained in:
Nuckyz 2025-05-05 19:39:34 -03:00
parent 9a3c66abfd
commit 89ef26e719
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
5 changed files with 16 additions and 15 deletions

View file

@ -18,7 +18,7 @@
import { Settings } from "@api/Settings";
import { Queue } from "@utils/Queue";
import { ReactDOM } from "@webpack/common";
import { createRoot } from "@webpack/common";
import type { ReactNode } from "react";
import type { Root } from "react-dom/client";
@ -35,7 +35,7 @@ function getRoot() {
const container = document.createElement("div");
container.id = "vc-notification-container";
document.body.append(container);
reactRoot = ReactDOM.createRoot(container);
reactRoot = createRoot(container);
}
return reactRoot;
}