From 45d5868aa630cb05edf0c8ccddca79415ea7ba04 Mon Sep 17 00:00:00 2001 From: Adam McCrea Date: Fri, 8 Mar 2013 14:59:39 -0500 Subject: [PATCH] Handle Rails apps running on relative root --- lib/rack/livereload.rb | 4 +++- skel/livereload.html.erb | 4 ++-- spec/rack/livereload_spec.rb | 9 +++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/rack/livereload.rb b/lib/rack/livereload.rb index 0a7b613..349640d 100644 --- a/lib/rack/livereload.rb +++ b/lib/rack/livereload.rb @@ -77,8 +77,10 @@ module Rack if !headers['X-Rack-LiveReload'] && line[' - - + + <% end %>