aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/window.js
blob: 55f0bb6d238f5c0b07b7b18498ad28f8d0e5f5de (plain)
1
2
3
4
5
6
7
8
9
10
11
export const globals = {
  window: typeof window === 'undefined' ? null : window,
  document: typeof document === 'undefined' ? null : document
}

export function registerWindow ( win = null, doc = null ) {

  globals.window = win
  globals.document = doc

}