1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

remove mono compiler directives

This commit is contained in:
Luke Pulverenti 2014-10-06 19:58:46 -04:00
parent e53b184e77
commit 7ad3b6c430
25 changed files with 190 additions and 211 deletions

View file

@ -1270,6 +1270,16 @@ $(function () {
e.preventDefault();
return false;
});
function isTouchDevice() {
return (('ontouchstart' in window)
|| (navigator.MaxTouchPoints > 0)
|| (navigator.msMaxTouchPoints > 0));
}
if (isTouchDevice()) {
$(document.body).addClass('touch');
}
});
Dashboard.jQueryMobileInit();