mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
Fix faulty detection of touch device
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user