aboutsummaryrefslogtreecommitdiff
path: root/lib/include/html_head.inc.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2022-12-12 15:20:27 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2022-12-12 15:20:27 +0000
commit936d1c00ea05bb0a5c56f441ff2eece6ccefada6 (patch)
tree10c4b9a4a1d02780112f7ddc99f9a88b37a1ad20 /lib/include/html_head.inc.php
parent54dbf11a35cac0de6fed1c50114c9583d210a40e (diff)
Resolve "StEP00348: Responsive Navigation Stud.IP 5.x"
Closes #32 Merge request studip/studip!65
Diffstat (limited to 'lib/include/html_head.inc.php')
-rw-r--r--lib/include/html_head.inc.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/include/html_head.inc.php b/lib/include/html_head.inc.php
index 4ab1c0e..a7f2c21 100644
--- a/lib/include/html_head.inc.php
+++ b/lib/include/html_head.inc.php
@@ -32,12 +32,6 @@ $lang_attr = str_replace('_', '-', $_SESSION['_language']);
String.locale = "<?= htmlReady(strtr($_SESSION['_language'], '_', '-')) ?>";
document.querySelector('html').className = 'js';
- setTimeout(() => {
- // This needs to be put in a timeout since otherwise it will not match
- if (window.matchMedia('(max-width: 767px)').matches) {
- document.querySelector('html').classList.add('responsive-display');
- }
- }, 0);
window.STUDIP = {
ABSOLUTE_URI_STUDIP: "<?= $GLOBALS['ABSOLUTE_URI_STUDIP'] ?>",