Skip to content

Build your personal knowledge base with Trilium Notes

fix #248: crossorigin attribute is needed when including with type="module"

Julien Nicoulaudcb00d425466b
diff --git a/src/views/index.ejs b/src/views/index.ejs
index d4ae306e44..f614aea27a 100644
--- a/src/views/index.ejs
+++ b/src/views/index.ejs
@@ -236,7 +236,7 @@
<link href="/stylesheets/style.css" rel="stylesheet">
- <script src="/javascripts/services/bootstrap.js" type="module"></script>
+ <script src="/javascripts/services/bootstrap.js" crossorigin type="module"></script>
<link rel="stylesheet" type="text/css" href="/libraries/jam/css/jam.min.css">
@@ -250,4 +250,4 @@
<%= appCss %>
</style>
</body>
-</html>
\ No newline at end of file
+</html>
diff --git a/src/views/setup.ejs b/src/views/setup.ejs
index 9117b56d3b..4a62c51d9d 100644
--- a/src/views/setup.ejs
+++ b/src/views/setup.ejs
@@ -129,6 +129,6 @@
<script src="/libraries/knockout.min.js"></script>
-<script src="/javascripts/setup.js" type="module"></script>
+<script src="/javascripts/setup.js" crossorigin type="module"></script>
</body>
-</html>
\ No newline at end of file
+</html>