détecter le mode plein écran
window.addEventListener('resize', (evt) => {
if (window.innerHeight == screen.height) {
console.log('FULL SCREEN');
} else {
console.log('NORMAL SCREEN');
}
});
mentico