Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Apr 26, 2018
1 parent 9e8e9b0 commit ad05a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/middleman-livereload/extension_3_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def initialize(app, options_hash={}, &block)

reload_path = "#{Dir.pwd}/#{file}"

file_url = sitemap.file_to_path(file)
file_url = app.sitemap.file_to_path(file)
if file_url
file_resource = sitemap.find_resource_by_path(file_url)
file_resource = app.sitemap.find_resource_by_path(file_url)
if file_resource
reload_path = file_resource.url
end
Expand Down

0 comments on commit ad05a24

Please sign in to comment.