All files / src/utils isChildWindow.ts

66.66% Statements 2/3
0% Branches 0/2
0% Functions 0/1
66.66% Lines 2/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 62x   2x      
import { isBrowser } from '@wirewheel/cmp/src/utils/isBrowser'
 
export function isChildWindow(): boolean {
  return isBrowser() && window !== top
}