Skip to content

Commit cb00d42

Browse files
committed
fix #248: crossorigin attribute is needed when including with type="module"
For more info, see: * https://html.spec.whatwg.org/multipage/urls-and-fetching.html#cors-settings-attributes * https://jakearchibald.com/2017/es-modules-in-browsers
1 parent ee0b0c3 commit cb00d42

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/views/index.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236

237237
<link href="/stylesheets/style.css" rel="stylesheet">
238238

239-
<script src="/javascripts/services/bootstrap.js" type="module"></script>
239+
<script src="/javascripts/services/bootstrap.js" crossorigin type="module"></script>
240240

241241
<link rel="stylesheet" type="text/css" href="/libraries/jam/css/jam.min.css">
242242

@@ -250,4 +250,4 @@
250250
<%= appCss %>
251251
</style>
252252
</body>
253-
</html>
253+
</html>

src/views/setup.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,6 @@
129129

130130
<script src="/libraries/knockout.min.js"></script>
131131

132-
<script src="/javascripts/setup.js" type="module"></script>
132+
<script src="/javascripts/setup.js" crossorigin type="module"></script>
133133
</body>
134-
</html>
134+
</html>

0 commit comments

Comments
 (0)