all-in-one/php/public/before-unload.js

3 lines
120 B
JavaScript
Raw Normal View History

window.addEventListener("beforeunload", function() {
document.getElementById('overlay').classList.add('loading')
});