Wykryj tryb pełnego ekranu
window.addEventListener('resize', (evt) => {
if (window.innerHeight == screen.height) {
console.log('FULL SCREEN');
} else {
console.log('NORMAL SCREEN');
}
});
mentico