We could simply check the resolution or user agent: const isMobile = Math.min(window.screen.width, window.screen.height) < 768 || navigator.userAgent.indexOf("Mobile") > -1;
1
Août
We could simply check the resolution or user agent: const isMobile = Math.min(window.screen.width, window.screen.height) < 768 || navigator.userAgent.indexOf("Mobile") > -1;
Tags: Anglais, Niveau débutant, Programmation