aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-29 20:27:48 +0200
committerGitHub <noreply@github.com>2022-10-29 20:27:48 +0200
commit93859883c12cbc39e0142840b633fc288e9ecc75 (patch)
treec18ea313c410f53ae53488b4e27a71af105d902e /src/webpack
parent37105ac416545f1b26f885c3c6c7b98bdce9e2a6 (diff)
downloadVencord-93859883c12cbc39e0142840b633fc288e9ecc75.tar.gz
Vencord-93859883c12cbc39e0142840b633fc288e9ecc75.tar.bz2
Vencord-93859883c12cbc39e0142840b633fc288e9ecc75.zip
build: inject createElement alias (#176)
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/webpack/common.tsx b/src/webpack/common.tsx
index 2f9aaa9..f5b2401 100644
--- a/src/webpack/common.tsx
+++ b/src/webpack/common.tsx
@@ -115,11 +115,7 @@ export const Clipboard = mapMangledModuleLazy('document.queryCommandEnabled("cop
SUPPORTS_COPY: x => typeof x === "boolean",
});
-waitFor("useState", m => {
- window._Ve$ = m.createElement;
- window._VF$ = m.Fragment;
- React = m;
-});
+waitFor("useState", m => React = m);
waitFor(["dispatch", "subscribe"], m => {
FluxDispatcher = m;