Skip to content

Commit fef127e

Browse files
committed
Applied workaround for JSON newline issue
1 parent 8f7742c commit fef127e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/views/js/stories.js.erb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$(document).ready(function() {
55
var Stories = new StoryList;
66
var StoryApp = new AppView(Stories);
7-
StoryApp.loadData(<%= stories.to_json %>);
7+
StoryApp.loadData(<%= stories.to_json.gsub(/[^[:print:]]/, '') %>);
88

99
Mousetrap.bind("j", function() {
1010
StoryApp.moveCursorDown();

0 commit comments

Comments
 (0)