Skip to content

Commit

Permalink
removing script tag from seer include to play nice with haml templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Matheson committed Oct 22, 2010
1 parent 0bae7e1 commit 3232664
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/seer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ def self.log(message) #:nodoc:

def self.init_visualization
%{
<script type="text/javascript">
var jsapi = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + jsapi + "www.google.com/jsapi' type='text/javascript'%3E%3C/script%3E"));
</script>
var jsapi = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + jsapi + "www.google.com/jsapi' type='text/javascript'%3E%3C/script%3E"));
}
end

Expand Down

0 comments on commit 3232664

Please sign in to comment.