From 5f76f6ce2780a630401bf7df04ae445ac60caf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 6 Mar 2022 10:23:34 +0100 Subject: [PATCH] theme: don't use jquery in new code --- static/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/theme.js b/static/js/theme.js index cd58c29867..0eb1a9ed22 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -344,7 +344,7 @@ function initSwipeHandler(){ else if( diffx > 30 ){ startx = null; starty = null; - jQuery(document.body).toggleClass('sidebar-flyout'); + document.querySelector( 'body' ).classList.toggle( 'sidebar-flyout' ); } } return false;