diff --git a/src/js/lib.js b/src/js/lib.js index 4639716d14..cca76e48fd 100644 --- a/src/js/lib.js +++ b/src/js/lib.js @@ -348,7 +348,7 @@ vjs.IS_OLD_ANDROID = vjs.IS_ANDROID && (/webkit/i).test(vjs.USER_AGENT) && vjs.A vjs.IS_FIREFOX = (/Firefox/i).test(vjs.USER_AGENT); vjs.IS_CHROME = (/Chrome/i).test(vjs.USER_AGENT); -vjs.TOUCH_ENABLED = (('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch); +vjs.TOUCH_ENABLED = !!(('ontouchstart' in window) || window.DocumentTouch && document instanceof window.DocumentTouch); /** * Get an element's attribute values, as defined on the HTML tag