summaryrefslogtreecommitdiff
path: root/client/simple/src/js/core
diff options
context:
space:
mode:
Diffstat (limited to 'client/simple/src/js/core')
-rw-r--r--client/simple/src/js/core/index.ts1
-rw-r--r--client/simple/src/js/core/nojs.ts8
2 files changed, 9 insertions, 0 deletions
diff --git a/client/simple/src/js/core/index.ts b/client/simple/src/js/core/index.ts
index 48d166f7d..59e64182c 100644
--- a/client/simple/src/js/core/index.ts
+++ b/client/simple/src/js/core/index.ts
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
+import "./nojs.ts";
import "./router.ts";
import "./toolkit.ts";
import "./listener.ts";
diff --git a/client/simple/src/js/core/nojs.ts b/client/simple/src/js/core/nojs.ts
new file mode 100644
index 000000000..65c62dd90
--- /dev/null
+++ b/client/simple/src/js/core/nojs.ts
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: AGPL-3.0-or-later
+
+import { ready } from "./toolkit.ts";
+
+ready(() => {
+ document.documentElement.classList.remove("no-js");
+ document.documentElement.classList.add("js");
+});