From b85075de537ea5052565f2704c954df8d24a9c1a Mon Sep 17 00:00:00 2001 From: Natsumi Date: Tue, 21 Sep 2021 10:57:52 +1200 Subject: [PATCH] Cursed caching bug fix --- html/src/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index a4fc9a6f..34cec2a8 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -2985,8 +2985,9 @@ speechSynthesis.getVoices(); }; API.refreshFavoriteAvatars = function (tag) { + var n = Math.floor(Math.random() * (50 + 1)) + 50; var params = { - n: 100, + n, offset: 0, tag }; @@ -3017,22 +3018,24 @@ speechSynthesis.getVoices(); if (N > 0) { if (type === 'avatar') { for (var tag of tags) { + var n = Math.floor(Math.random() * (50 + 1)) + 50; this.bulk({ fn, N, params: { - n: 100, + n, offset: 0, tag } }); } } else { + var n = Math.floor(Math.random() * (50 + 1)) + 50; this.bulk({ fn, N, params: { - n: 50, + n, offset: 0 } });