diff --git a/framework/core/js/forum/src/components/discussion-list-item.js b/framework/core/js/forum/src/components/discussion-list-item.js index 1ebadb6f4..319debb89 100644 --- a/framework/core/js/forum/src/components/discussion-list-item.js +++ b/framework/core/js/forum/src/components/discussion-list-item.js @@ -113,7 +113,7 @@ export default class DiscussionListItem extends Component { config(element, isInitialized, context) { if (isInitialized) return; - if (window.ontouchstart !== 'undefined') { + if ('ontouchstart' in window) { this.$().addClass('slidable'); var slidableInstance = slidable(element);