mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-20 15:06:15 -04:00
fix animation function if called multiple times
This commit is contained in:
parent
651047cfa8
commit
0436a2185a
2 changed files with 7 additions and 3 deletions
|
@ -659,8 +659,12 @@ Events.on('load', () => {
|
|||
}
|
||||
}
|
||||
window.animateBackground = function(l) {
|
||||
loading = l;
|
||||
animate();
|
||||
if (!l) {
|
||||
loading = false;
|
||||
} else if (!loading) {
|
||||
loading = true;
|
||||
animate();
|
||||
}
|
||||
};
|
||||
init();
|
||||
animate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue