lib/guard/livereload/reactor.rb in guard-livereload-2.2.0 vs lib/guard/livereload/reactor.rb in guard-livereload-2.3.0

- old
+ new

@@ -15,10 +15,15 @@ def stop thread.kill end def reload_browser(paths = []) - UI.info "Reloading browser: #{paths.join(' ')}" + msg = "Reloading browser: #{paths.join(' ')}" + UI.info msg + if options[:notify] + Notifier.notify(msg, title: 'Reloading browser', image: :success) + end + paths.each do |path| data = _data(path) UI.debug(data) web_sockets.each { |ws| ws.send(MultiJson.encode(data)) } end