Merge pull request #53 from samcon/master

Set the protocol of the livereload source
This commit is contained in:
John Bintz 2015-07-03 09:20:53 -04:00
commit 493aa6255d
1 changed files with 5 additions and 1 deletions

View File

@ -9,8 +9,12 @@ module Rack
attr_reader :content_length, :new_body, :livereload_added attr_reader :content_length, :new_body, :livereload_added
def protocol
@options[:protocol] || "http"
end
def livereload_local_uri def livereload_local_uri
"http://localhost:#{@options[:live_reload_port]}/livereload.js" "#{protocol}://localhost:#{@options[:live_reload_port]}/livereload.js"
end end
def initialize(body, options) def initialize(body, options)