From 6630d4b66c4c5291c76c50e8c7c8c2f220e30268 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Mon, 10 Apr 2017 22:41:19 +0100 Subject: [PATCH] Remove redundant check for classList property, as per #3531 --- wagtail/wagtailadmin/static_src/wagtailadmin/js/userbar.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/wagtail/wagtailadmin/static_src/wagtailadmin/js/userbar.js b/wagtail/wagtailadmin/static_src/wagtailadmin/js/userbar.js index 666a50e022..f4fe76ae6b 100644 --- a/wagtail/wagtailadmin/static_src/wagtailadmin/js/userbar.js +++ b/wagtail/wagtailadmin/static_src/wagtailadmin/js/userbar.js @@ -8,10 +8,6 @@ document.addEventListener('DOMContentLoaded', function userBar(e) { var hasTouch = 'ontouchstart' in window; var clickEvent = 'click'; - if (!'classList' in userbar) { - return; - } - if (hasTouch) { userbar.classList.add('touch');