lib/guard/livereload/reactor.rb in guard-livereload-0.1.8 vs lib/guard/livereload/reactor.rb in guard-livereload-0.1.9
- old
+ new
@@ -19,10 +19,10 @@
def reload_browser(paths = [])
UI.info "Reloading browser: #{paths.join(' ')}"
paths.each do |path|
data = ['refresh', {
- :path => path,
+ :path => "#{Dir.pwd}/#{path}",
:apply_js_live => @options[:apply_js_live],
:apply_css_live => @options[:apply_css_live]
}].to_json
UI.debug data
@web_sockets.each { |ws| ws.send(data) }