enhance(frontend): 「単なるラッキー」の調整
This commit is contained in:
parent
d6caa4d9c4
commit
c13f827727
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ export async function mainBoot() {
|
|||
|
||||
if (!claimedAchievements.includes('justPlainLucky')) {
|
||||
window.setInterval(() => {
|
||||
if (Math.floor(Math.random() * 20000) === 0) {
|
||||
if (document.visibilityState === 'visible' && Math.floor(Math.random() * 20000) === 0) {
|
||||
claimAchievement('justPlainLucky');
|
||||
}
|
||||
}, 1000 * 10);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue