mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-21 22:54:53 +08:00
fix animation function if called multiple times
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user