screen.orientation.addEventListener('change', function(e) { setTimeout(handleOrientationChange, 500); function handleOrientationChange() { // alert(screen.orientation.angle); // alert(screen.orientation.type); // alert(window.orientation); appScaleFactorVal = 1 / jQuery('body').width() * window.innerWidth; // @todo - DVT - leer desde el CoreBingridApp document.cookie = "app-scale-factor="+appScaleFactorVal+"; path=/; secure; domain=.bingrid.com; samesite=None"; document.documentElement.style.setProperty('--bg-app-scale-factor', appScaleFactorVal); } }, false);