Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Ribeiro authored and Felipe Ribeiro committed Dec 21, 2023
1 parent b7427d2 commit 9736f32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,11 @@
var wasActive = active;
active = width > 100;

if (!wasActive && active) requestAnimFrame(update);
if (!wasActive) {
if (active) {
requestAnimFrame(update);
}
}
}

var Snowflake = function () {
Expand Down

0 comments on commit 9736f32

Please sign in to comment.