File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
web/src/components/devtools Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import { getApp } from '../../helpers/app';
1818import { SupportButton } from '../common/Support'
1919import { useGetUserStateQuery } from '../../app/api/userStateApi'
2020import { BiBookBookmark } from 'react-icons/bi'
21+ import { getParsedIframeInfo } from '../../helpers/origin'
2122
2223export const TelemetryToggle = ( { color} :{ color : 'minusxBW.800' | 'minusxBW.50' } ) => {
2324 const uploadLogs = useSelector ( ( state : RootState ) => state . settings . uploadLogs )
@@ -35,12 +36,16 @@ export const TelemetryToggle = ({color}:{color: 'minusxBW.800' | 'minusxBW.50'})
3536const useAppStore = getApp ( ) . useStore ( )
3637
3738export const DevToolsToggle : React . FC < { size : 'micro' | 'mini' } > = ( { size} ) => {
39+ const isEmbedded = getParsedIframeInfo ( ) . isEmbedded as unknown === 'true'
3840 const devTools = useSelector ( ( state : RootState ) => state . settings . isDevToolsOpen )
3941 const setshowDevTools = async ( value : boolean ) => {
4042 console . log ( 'Show Devtools' , value )
4143 dispatch ( updateIsDevToolsOpen ( value ) )
4244 if ( value ) {
4345 await setMinusxMode ( 'open-sidepanel-devtools' )
46+ if ( isEmbedded ) {
47+ dispatch ( updateDevToolsTabName ( 'Memory' ) )
48+ }
4449 } else {
4550 await setMinusxMode ( 'open-sidepanel' )
4651 }
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ export const DevToolsBox: React.FC = () => {
107107 if ( isInfoPageEnabled && Monitor . title == 'Debug Tools' ) {
108108 return true
109109 }
110+ if ( isInfoPageEnabled && Monitor . title == 'Context' ) {
111+ return true
112+ }
110113 return false
111114 }
112115
You can’t perform that action at this time.
0 commit comments