Skip to content

Commit 144f9ae

Browse files
author
Robert Mosolgo
committed
Merge pull request #297 from glittershark/consistent-heredoc-indentation
Make indentation in heredocs consistent
2 parents 6019be9 + db77c2c commit 144f9ae

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/react/server_rendering/sprockets_renderer.rb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def render(component_name, props, prerender_options)
4141

4242
# Handle node.js & other RubyRacer contexts
4343
GLOBAL_WRAPPER = <<-JS
44-
var global = global || this;
45-
var self = self || this;
46-
var window = window || this;
44+
var global = global || this;
45+
var self = self || this;
46+
var window = window || this;
4747
JS
4848

4949
# Reimplement console methods for replaying on the client
@@ -58,15 +58,15 @@ def render(component_name, props, prerender_options)
5858

5959
# Replay message from console history
6060
CONSOLE_REPLAY = <<-JS
61-
(function (history) {
62-
if (history && history.length > 0) {
63-
result += '\\n<scr'+'ipt>';
64-
history.forEach(function (msg) {
65-
result += '\\nconsole.' + msg.level + '.apply(console, ' + JSON.stringify(msg.arguments) + ');';
66-
});
67-
result += '\\n</scr'+'ipt>';
68-
}
69-
})(console.history);
61+
(function (history) {
62+
if (history && history.length > 0) {
63+
result += '\\n<scr'+'ipt>';
64+
history.forEach(function (msg) {
65+
result += '\\nconsole.' + msg.level + '.apply(console, ' + JSON.stringify(msg.arguments) + ');';
66+
});
67+
result += '\\n</scr'+'ipt>';
68+
}
69+
})(console.history);
7070
JS
7171

7272
class PrerenderError < RuntimeError

0 commit comments

Comments
 (0)