enhance(frontend): 「単なるラッキー」の調整

This commit is contained in:
kakkokari-gtyih 2024-10-20 18:25:46 +09:00
parent d6caa4d9c4
commit c13f827727
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ export async function mainBoot() {
if (!claimedAchievements.includes('justPlainLucky')) { if (!claimedAchievements.includes('justPlainLucky')) {
window.setInterval(() => { window.setInterval(() => {
if (Math.floor(Math.random() * 20000) === 0) { if (document.visibilityState === 'visible' && Math.floor(Math.random() * 20000) === 0) {
claimAchievement('justPlainLucky'); claimAchievement('justPlainLucky');
} }
}, 1000 * 10); }, 1000 * 10);