From b448d724bc3598e537fe97a926bc8f987d9255b9 Mon Sep 17 00:00:00 2001
From: Ernest Rekel <ernest.rekel@gmail.com>
Date: Sat, 30 Dec 2017 12:09:46 +0200
Subject: [PATCH] `window` should not be defined during SSR

---
 ReactJS.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ReactJS.php b/ReactJS.php
index 8877e37..0bbdf8b 100644
--- a/ReactJS.php
+++ b/ReactJS.php
@@ -52,7 +52,7 @@ function __construct($libsrc, $appsrc) {
     $react = array();
     // stubs, react
     $react[] = "var console = {warn: function(){}, error: print};";
-    $react[] = "var global = global || this, self = self || this, window = window || this;";
+    $react[] = "var global = global || this, self = self || this";
     $react[] = $libsrc;
     $react[] = "var React = global.React, ReactDOM = global.ReactDOM, ReactDOMServer = global.ReactDOMServer;";
     // app's components