fix: events.load really at the end (inside setTimeout)

events.load must be execute inside the setTimeout before script realy fully loaded
This commit is contained in:
lioshi 2021-03-08 09:57:04 +01:00 committed by GitHub
parent 987b984f79
commit e8d1b37b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -662,14 +662,13 @@ var tarteaucitron = {
tarteaucitron.userInterface.respond(this, false);
});
}
if(tarteaucitron.events.load) {
tarteaucitron.events.load();
}
}, 500);
});
});
if(tarteaucitron.events.load) {
tarteaucitron.events.load();
}
},
"addService": function (serviceId) {
"use strict";