summaryrefslogtreecommitdiffstats
path: root/src/utils/window.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/window.js')
-rw-r--r--src/utils/window.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/window.js b/src/utils/window.js
index 9e51339..55f0bb6 100644
--- a/src/utils/window.js
+++ b/src/utils/window.js
@@ -3,7 +3,9 @@ export const globals = {
document: typeof document === 'undefined' ? null : document
}
-export function registerWindow (win = null, doc = null) {
+export function registerWindow ( win = null, doc = null ) {
+
globals.window = win
globals.document = doc
+
}