Skip to content

Commit 8f4b305

Browse files
index.html: re-add type=module on the script tag
login.js uses `import Session from 'https://esm.sh/solid-oidc'` which requires the loading <script> tag to declare type=module. I dropped this attribute when I briefly switched to the xlogin <script src> approach and forgot to put it back when I returned to a real module import. Browser raised "Cannot use import statement outside a module" on load.
1 parent a4d73dc commit 8f4b305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ <h1>Sign in to Solid</h1>
8686
<a href="https://github.com/JavaScriptSolidServer/JavaScriptSolidServer">JSS</a>
8787
</footer>
8888
</main>
89-
<script src="./login.js"></script>
89+
<script type="module" src="./login.js"></script>
9090
</body>
9191
</html>

0 commit comments

Comments
 (0)