Set the protocol of the livereload source #53

Merged
samcon merged 1 commits from master into master 2015-07-03 13:20:53 +00:00
Showing only changes of commit 27063b7d20 - Show all commits

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)