Fixed linter warning

This commit is contained in:
Rainer Simon 2020-09-14 12:17:38 +02:00
parent 5018f2e8cf
commit 7aa434581e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import EventEmitter from 'tiny-emitter';
const IS_TOUCH = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
const IS_INTERNET_EXPLORER =
window?.navigator?.userAgent.match(/(MSIE|Trident)/);
navigator?.userAgent.match(/(MSIE|Trident)/);
/** Tests whether maybeChildEl is contained in containerEl **/
const contains = (containerEl, maybeChildEl) => {