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:
parent
6df0716ec5
commit
6dfeccb26a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue