Skip to content

Commit cc7b5bc

Browse files
authored
Fix auth client load order (#602)
1 parent dea121a commit cc7b5bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

default-templates/new-account/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<title>{{#if name}}{{name}} &ndash; {{/if}}Solid Home</title>
77
<link rel="stylesheet" href="/common/css/bootstrap.min.css">
8-
<script id="solid-auth-client" src="/common/js/solid-auth-client.bundle.js" defer></script>
98
<style>
109
.session-action {
1110
margin-right: 15px;
@@ -76,6 +75,7 @@ <h1>Apps</h1>
7675
</section>
7776
</div>
7877
</body>
78+
<script src="/common/js/solid-auth-client.bundle.js"></script>
7979
<script type="text/javascript">
8080
const popupUri = window.location.origin + '/common/popup.html'
8181
const stateData = {
@@ -133,6 +133,6 @@ <h1>Apps</h1>
133133
return document.getElementById('session-action')
134134
}
135135

136-
main()
136+
document.addEventListener('DOMContentLoaded', main)
137137
</script>
138138
</html>

0 commit comments

Comments
 (0)