fix: stats, marketplace, deep links on preview

This commit is contained in:
David Ralph
2026-01-24 13:43:40 +00:00
parent e218ad512e
commit d0e91f7099
3 changed files with 24 additions and 7 deletions

View File

@@ -4,6 +4,11 @@ import variables from 'config/variables';
export default class Stats {
static async achievementTrigger(stats) {
// Disable achievements in preview mode
if (localStorage.getItem('showWelcome') === 'true') {
return;
}
const newAchievement = newAchievements(stats);
newAchievement.forEach((achievement) => {
if (achievement) {