Просмотр исходного кода

fix: send mjs as text/javascript

pull/4/head
Rohan Verma 6 лет назад
Родитель
Сommit
995dd9f8f3
3 измененных файлов: 2 добавлений и 2 удалений
  1. +0
    -0
      content/static/js/darkmode.js
  2. +1
    -1
      layouts/partials/body/scripts.html
  3. +1
    -1
      layouts/partials/head/custom.html

content/static/js/darkmode.mjs → content/static/js/darkmode.js Просмотреть файл


+ 1
- 1
layouts/partials/body/scripts.html Просмотреть файл

@@ -1,5 +1,5 @@
<script type="module">
import * as DarkModeToggle from '/static/js/darkmode.mjs';
import * as DarkModeToggle from '/static/js/darkmode.js';

const toggle = document.querySelector('dark-mode-toggle');
const body = document.body;

+ 1
- 1
layouts/partials/head/custom.html Просмотреть файл

@@ -2,4 +2,4 @@
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
<link rel="webmention" href="https://webmention.io/rohanverma.net/webmention" />
<link rel="pingback" href="https://webmention.io/rohanverma.net/xmlrpc" />
<script type="module" src="/static/js/darkmode.mjs"></script>
<script type="module" src="/static/js/darkmode.js"></script>

Загрузка…
Отмена
Сохранить