Skip to content

Commit d659983

Browse files
committed
fix: make React DevTools work again
1 parent 2fd3453 commit d659983

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/core/ui/settings/pages/Developer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const { showSimpleActionSheet } = lazyDestructure(() => findByProps("showSimpleA
2121
const { openAlert } = lazyDestructure(() => findByProps("openAlert", "dismissAlert"));
2222
const { AlertModal, AlertActionButton } = lazyDestructure(() => findByProps("AlertModal", "AlertActions"));
2323

24-
const RDT_EMBED_LINK = "https://github.com/revenge-mod/react-devtools-core/releases/latest/download/rdtc.js";
24+
const RDT_EMBED_LINK = "https://github.com/revenge-mod/react-devtools-core/releases/latest/download/index.bundle";
2525

2626
const useStyles = createStyles({
2727
leadingText: {

src/lib/api/native/loader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export function getThemeFilePath() {
150150

151151
export function isReactDevToolsPreloaded() {
152152
if (isPyonLoader()) {
153-
return Boolean(window.__reactDevTools);
153+
return Boolean(window.__REACT_DEVTOOLS__);
154154
}
155155
if (isVendettaLoader()) {
156156
return vendettaLoaderIdentity!!.features.devtools != null;
@@ -163,7 +163,7 @@ export function getReactDevToolsProp(): string | null {
163163
if (!isReactDevToolsPreloaded()) return null;
164164

165165
if (isPyonLoader()) {
166-
window.__pyoncord_rdt = window.__reactDevTools.exports;
166+
window.__pyoncord_rdt = window.__REACT_DEVTOOLS__.exports;
167167
return "__pyoncord_rdt";
168168
}
169169

@@ -178,7 +178,7 @@ export function getReactDevToolsVersion() {
178178
if (!isReactDevToolsPreloaded()) return null;
179179

180180
if (isPyonLoader()) {
181-
return window.__reactDevTools.version || null;
181+
return window.__REACT_DEVTOOLS__.version || null;
182182
}
183183
if (isVendettaLoader()) {
184184
return vendettaLoaderIdentity!!.features.devtools!!.version;

0 commit comments

Comments
 (0)