improved (& still hacky) mobile detection
This commit is contained in:
parent
abe97094e8
commit
e1491a7e6f
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ var ComicBook = (function ($) {
|
|||
this.isMobile = false;
|
||||
|
||||
// mobile enhancements
|
||||
if (navigator.userAgent.match(/mobile/i)) {
|
||||
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile/i.test(navigator.userAgent)) {
|
||||
this.isMobile = true;
|
||||
document.body.classList.add('mobile');
|
||||
defaults.displayMode = 'single';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue