|
|
@ -47,7 +47,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => { |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
handleResize() |
|
|
|
handleResize() |
|
|
|
}, [state.debugging, state.isActive]) |
|
|
|
}, []) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
window.addEventListener('resize', handleResize) |
|
|
|
window.addEventListener('resize', handleResize) |
|
|
@ -55,7 +55,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => { |
|
|
|
setTimeout(() => |
|
|
|
setTimeout(() => |
|
|
|
handleResize(), 2000) |
|
|
|
handleResize(), 2000) |
|
|
|
return () => window.removeEventListener('resize', handleResize) |
|
|
|
return () => window.removeEventListener('resize', handleResize) |
|
|
|
}, [state.debugging]) |
|
|
|
}, [state.debugging, state.isActive]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|