Skip to content

Commit

Permalink
Use .js not .mjs to avoid having to reconfigure server
Browse files Browse the repository at this point in the history
When you use type="module" the browser will reject if the server doesn't send
as type text/javascript. So just work with the grain and use a .js file
extension.
  • Loading branch information
bakert committed Sep 18, 2024
1 parent 4c11b00 commit 5eec130
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
File renamed without changes.
2 changes: 1 addition & 1 deletion gatherling/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function print_footer(): void
echo TemplateHelper::render('partials/footer', [
'versionTagline' => version_tagline(),
'gitHash' => git_hash(),
'jsLink' => 'gatherling.mjs?v=' . rawurlencode(git_hash()),
'jsLink' => 'gatherling.js?v=' . rawurlencode(git_hash()),
]);
}

Expand Down

0 comments on commit 5eec130

Please sign in to comment.