Skip to content

Commit

Permalink
chore: remove redundant MIME type from HTML script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton committed Apr 11, 2021
1 parent a27c9ee commit 44c32c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%= style %>
<% end %>
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.8/d3.min.js"></script>
</head>
<body>
<div id="wrapper">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<% end %>

<script type="text/javascript">
<script>
(function() {
var traceFrames = document.getElementsByClassName('trace-frames-<%= error_index %>');
var selectedFrame, currentSource = document.getElementById('frame-source-<%= error_index %>-0');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
</tbody>
</table>

<script type='text/javascript'>
<script>
// support forEach iterator on NodeList
NodeList.prototype.forEach = Array.prototype.forEach;

Expand Down
2 changes: 1 addition & 1 deletion actionview/test/ujs/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title><%= @title %></title>
<%= csp_meta_tag %>
<link href="/vendor/qunit.css" media="screen" rel="stylesheet" type="text/css" media="screen, projection" />
<script src="/vendor/jquery-2.2.0.js" type="text/javascript"></script>
<script src="/vendor/jquery-2.2.0.js"></script>
<%= javascript_tag nonce: true do %>
// This is for test in override.js.
// Must go before rails-ujs.
Expand Down

0 comments on commit 44c32c1

Please sign in to comment.