Rename arrow.js file

Nginx doesn't have a default mapping for .mjs so doesn't serve it with
the JavaScript MIME type, which upsets the browser.
This commit is contained in:
Wesley Moore 2024-09-05 08:59:11 +10:00
parent 14044374dd
commit ee6b1efd6b
No known key found for this signature in database
3 changed files with 2 additions and 2 deletions

View file

@ -2,5 +2,5 @@ help:
@echo deploy
deploy:
rsync -avz arrow.min.js hardforze.binarytrance.com:infrastructure/volumes/www/7bit.org/
rsync -avz index.html hardforze.binarytrance.com:infrastructure/volumes/www/7bit.org/trip-calculator.html
rsync -avz arrow.min.mjs hardforze.binarytrance.com:infrastructure/volumes/www/7bit.org/

View file

View file

@ -64,7 +64,7 @@ body {
}
</script>
<script type="module">
import { reactive, html } from './arrow.min.mjs';
import { reactive, html } from './arrow.min.js';
const data = reactive({
price: 194.9,