Skip to content

Commit 424b334

Browse files
committed
chore: rename window object
1 parent d2dc249 commit 424b334

File tree

1 file changed

+3
-3
lines changed
  • packages/devtools/src/components

1 file changed

+3
-3
lines changed

packages/devtools/src/components/tabs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ export const Tabs = (props: TabsProps) => {
2323
const { setDetachedWindowOwner, detachedWindowOwner, detachedWindow } =
2424
useDetachedWindowControls()
2525
const handleDetachment = () => {
26-
const rdtWindow = window.open(
26+
const detachedWindow = window.open(
2727
window.location.href,
2828
'',
2929
`popup,width=${window.innerWidth},height=${state().height},top=${window.screen.height},left=${window.screenLeft}}`,
3030
)
3131

32-
if (rdtWindow) {
32+
if (detachedWindow) {
3333
setDetachedWindowOwner(true)
3434
setStorageItem(TANSTACK_DEVTOOLS_IS_DETACHED, 'true')
3535
setSessionItem(TANSTACK_DEVTOOLS_DETACHED_OWNER, 'true')
36-
rdtWindow.TDT_MOUNTED = true
36+
detachedWindow.TDT_MOUNTED = true
3737
}
3838
}
3939
return (

0 commit comments

Comments
 (0)