Skip to content

Commit

Permalink
Remove redundant type="text/javascript" from <script> elements
Browse files Browse the repository at this point in the history
sphinx-doc#164

Co-authored-by: Jon Dufresne <347634+jdufresne@users.noreply.github.com>
  • Loading branch information
introt and jdufresne committed Apr 21, 2022
1 parent 861ff8a commit 04ce117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alabester/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
{% endif %}

{% if theme_analytics_id %}
<script type="text/javascript">
<script>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ theme_analytics_id }}']);
Expand All @@ -115,7 +115,7 @@
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
var ga = document.createElement('script'); ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
Expand Down

0 comments on commit 04ce117

Please sign in to comment.