Skip to content

Commit 47443ca

Browse files
committed
comment out debug logs
1 parent f984e13 commit 47443ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/react/server_rendering/exec_js_renderer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ExecJSRenderer
1010

1111
def initialize(options={})
1212
js_code = options[:code] || raise('Pass `code:` option to instantiate a JS context!')
13-
File.write("./tmp/latest_js_context.js", js_code, mode: "w+")
13+
# File.write("./tmp/latest_js_context.js", js_code, mode: "w+")
1414
@context = ExecJS.compile(GLOBAL_WRAPPER + js_code)
1515
end
1616

@@ -37,7 +37,7 @@ def after_render(component_name, props, prerender_options); ''; end
3737

3838
def render_from_parts(before, main, after)
3939
js_code = compose_js(before, main, after)
40-
File.write("./tmp/latest_js_request.js", js_code, mode: "w+")
40+
# File.write("./tmp/latest_js_request.js", js_code, mode: "w+")
4141
@context.eval(js_code).html_safe
4242
end
4343

0 commit comments

Comments
 (0)