mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Remove redundant check for classList property, as per #3531
This commit is contained in:
parent
3cf7006a86
commit
6630d4b66c
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user