Detect iPads too

This commit is contained in:
Matt Isenhower
2022-09-19 15:40:22 -07:00
parent 7e3fce9e41
commit bdfed98407

View File

@@ -3,7 +3,7 @@ import { RouterView } from 'vue-router';
try {
// Detect mobile browsers
if (navigator.userAgent.match(/iPhone|Android/i)) {
if (navigator.userAgent.match(/iPhone|iPad|Android/i)) {
document.body.classList.add('is-mobile');
}
} catch (e) {