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