mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Fix faulty detection of touch device
This commit is contained in:
parent
ad47f022b7
commit
679f7c6760
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user