1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-25 23:40:57 +00:00

run functions after load finished

This commit is contained in:
thomasrosen 2022-11-22 01:33:10 +01:00
parent 7f7a78639a
commit c3179e9108

View file

@ -141,7 +141,6 @@ function initTeams() {
renderTeamSelected()
renderTeamSelectedAutomatically()
}
initTeams()
const CloudFunctionsPrefix = 'https://us-central1-volt-4eca0.cloudfunctions.net/save_formdata'
@ -774,4 +773,8 @@ function _DATA_GOT_LOADED() {
generateForm(_DATA_)
}
}
_DATA_GOT_LOADED()
window.addEventListener('load', () => {
_DATA_GOT_LOADED()
initTeams()
}