Merge pull request #768 from lucmuller/master

Event loaded should be sent after js script is executed
This commit is contained in:
Amauri CHAMPEAUX 2021-07-29 12:01:47 +02:00 committed by GitHub
commit 6bfab4df0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1004,8 +1004,8 @@ var tarteaucitron = {
tarteaucitron.pro('!' + key + '=engage');
tarteaucitron.launch[key] = true;
tarteaucitron.sendEvent(key + '_loaded');
if (typeof tarteaucitronMagic === 'undefined' || tarteaucitronMagic.indexOf("_" + key + "_") < 0) { tarteaucitron.services[key].js(); }
tarteaucitron.sendEvent(key + '_loaded');
}
}
var itemStatusElem = document.getElementById('tacCurrentStatus'+key);