Skip to content

Commit 8e4e95e

Browse files
author
Nick Maher
committed
Remove window shim from ExecJS render
This can cause issues when using 3rd party libraries that do a presence check on window to determine if browser functions are available
1 parent 54772f7 commit 8e4e95e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/react/server_rendering/exec_js_renderer.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def after_render(component_name, props, prerender_options); ""; end
3333
GLOBAL_WRAPPER = <<-JS
3434
var global = global || this;
3535
var self = self || this;
36-
var window = window || this;
3736
JS
3837

3938
end

0 commit comments

Comments
 (0)