Skip to content

Commit 348649a

Browse files
Merge pull request #31 from biojs/visualization-frontend
Fix MIME type error, add version to wzrd URL
2 parents 85a24d1 + 9d85b2f commit 348649a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main/templates/main/visualizations.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
<link rel="stylesheet" type="text/css" href="{{dependency.css_url}}" />
2424
{% endfor %}
2525
{% for dependency in js_dependencies %}
26-
<script src="{{dependency.js_url}}"></script>
26+
<script type="application/x-javascript" src="{{dependency.js_url}}"></script>
2727
{% endfor %}
28-
<script src="{{sniper_data.wzrd_url}}"></script>
28+
<script type="application/x-javascript" src="{{sniper_data.wzrd_url}}@{{sniper_data.version}}"></script>
2929
</head>
3030
<body>
3131
<div id="placeholderDiv" style="display: none">
@@ -34,8 +34,7 @@
3434
</div>
3535
<div id='snippetDiv'></div>
3636
</body>
37-
<script>
38-
//
37+
<script type="text/javascript">
3938
String.prototype.replaceAll = function(search, replacement) {
4039
var target = this;
4140
return target.replace(new RegExp(search, 'g'), replacement);
@@ -90,4 +89,4 @@
9089
eval(script);
9190

9291
</script>
93-
</html>
92+
</html>

0 commit comments

Comments
 (0)