diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index 6b0634e..f6f32d5 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -394,7 +394,7 @@ /* Randomly index the visible array, keeping the center * in the middle. This makes the loading look more organic. */ - for (var i = 0, j = visible.length - 1; i != j; i++, j--) { + for (var i = 0, j = visible.length - 1; i < j; i++, j--) { if (Math.random() > 0.5) { var tmp = visible[i]; visible[i] = visible[j];