enhance(frontend): 「単なるラッキー」の調整
This commit is contained in:
parent
d6caa4d9c4
commit
c13f827727
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue