0
0
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:
Matt Westcott 2017-04-10 22:41:19 +01:00
parent 3cf7006a86
commit 6630d4b66c

View File

@ -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');