mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 19:42:38 +02:00
Make sure unload works
This commit is contained in:
parent
01b809d81c
commit
1f3daf6c2e
1 changed files with 2 additions and 1 deletions
|
@ -1254,7 +1254,8 @@ $(document).ready(function () {
|
||||||
$(window).on("unload", function () {
|
$(window).on("unload", function () {
|
||||||
addViewBeacon();
|
addViewBeacon();
|
||||||
});
|
});
|
||||||
|
window.addEventListener('beforeunload', function(e) {addViewBeacon();}, false);
|
||||||
|
|
||||||
checkDescriptionArea();
|
checkDescriptionArea();
|
||||||
setInterval(function () {// check for the carousel
|
setInterval(function () {// check for the carousel
|
||||||
checkDescriptionArea();
|
checkDescriptionArea();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue