reactjs/react-rails

View on GitHub
lib/react/server_rendering/bundle_renderer/console_replay.js

Summary

Maintainability
A
0 mins
Test Coverage
(function (history) {
  if (history && history.length > 0) {
    result += '\n<scr'+'ipt class="react-rails-console-replay">';
    history.forEach(function (msg) {
      result += '\nconsole.' + msg.level + '.apply(console, ' + JSON.stringify(msg.arguments) + ');';
    });
    result += '\n</scr'+'ipt>';
  }
})(console.history);