move JS detection to default script
commite0aa67753c3ad9c04d4370e827d210fd488da966
authorAndreas Gohr <andi@splitbrain.org>
Wed, 21 Feb 2024 14:32:03 +0000 (21 15:32 +0100)
committerAndreas Gohr <andi@splitbrain.org>
Wed, 21 Feb 2024 14:51:21 +0000 (21 15:51 +0100)
tree55f1d1fb9b78043a8d2bf804e420f171ccd3375c
parente5d413b07e3797d0f7a9df3342f08a2e51ec9fc0
move JS detection to default script

This moves the little helper that will remove a "no-js" class from the
header element as soon as JavaScript is detected from the dokuwiki
template to our default inline script that also initializes the JSINFO
array.

This ensures that this inline script is run with a nonce (if available).
See #3788 for more infor
inc/template.php
lib/tpl/dokuwiki/detail.php
lib/tpl/dokuwiki/main.php
lib/tpl/dokuwiki/mediamanager.php