diff --git a/src/Global.js b/src/Global.js
index <HASH>..<HASH> 100644
--- a/src/Global.js
+++ b/src/Global.js
@@ -26,13 +26,13 @@ export class Global {
     }
 
     static get localStorage() {
-        if (!testing) {
+        if (!testing && typeof window !== 'undefined') {
             return localStorage;
         }
     }
 
     static get sessionStorage() {
-        if (!testing) {
+        if (!testing && typeof window !== 'undefined') {
             return sessionStorage;
         }
     }
@@ -42,7 +42,7 @@ export class Global {
     }
 
     static get XMLHttpRequest() {
-        if (!testing) {
+        if (!testing && typeof window !== 'undefined') {
             return request || XMLHttpRequest;
         }
     }
Merge: Adding validation to check if window object exists before using it. #<I>