1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 02:09:22 +02:00

Make sure unload works

This commit is contained in:
Daniel 2021-08-02 15:36:17 -03:00
parent 01b809d81c
commit 1f3daf6c2e

View file

@ -1254,7 +1254,8 @@ $(document).ready(function () {
$(window).on("unload", function () {
addViewBeacon();
});
window.addEventListener('beforeunload', function(e) {addViewBeacon();}, false);
checkDescriptionArea();
setInterval(function () {// check for the carousel
checkDescriptionArea();