adaptivetheme-8.x-3.x-dev/at_core/scripts/at.orientationChangeReload.js
at_core/scripts/at.orientationChangeReload.js
/**
* @file
* Force reloads on orientation change.
*/
(function () {
Drupal.behaviors.atOrientationChangeReload = {
attach: function () {
window.addEventListener('orientationchange', function () {
// Wipe out the dom.
document.body.style.display = 'none';
// Reload from cache if available.
window.location.reload(false);
});
}
};
}());
