Commit dcd9a571 authored by Randall Leeds's avatar Randall Leeds

Only rebase heatmap urls if base tag present

parent a2a485bc
......@@ -85,6 +85,8 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
# the heatmap in case the page contains a <base> tag which might otherwise
# break these references.
return unless document.getElementsByTagName('base').length
location = window.location
base = "#{location.protocol}//#{location.host}#{location.pathname}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment