fix(plugins/developer-kit): access property from globalThis

Prevents "Property '__REACT_DEVTOOLS__' does not exist" on builds without React DevTools.
This commit is contained in:
PalmDevs 2025-09-17 18:00:21 +07:00
parent 6df0716ec5
commit 6dfeccb26a
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -11,7 +11,7 @@ const RDTVersionSetting: SettingsItem = CopyableSetting(
title: () => 'React DevTools',
usePredicate: () => RDTContext.active,
},
() => String(__REACT_DEVTOOLS__!.version),
() => String(globalThis.__REACT_DEVTOOLS__!.version),
)
export default RDTVersionSetting