diff options
Diffstat (limited to 'client/simple/src/js/core/nojs.ts')
| -rw-r--r-- | client/simple/src/js/core/nojs.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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"); +}); |