mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
implement tips for loading screen (#7632)
* implement tips for loading screen * fix typo in tip 22
This commit is contained in:
@@ -9,6 +9,7 @@ const md = markdownIt({
|
||||
let api = {};
|
||||
|
||||
const TOTAL_USER_COUNT = '1,100,000';
|
||||
const LOADING_SCREEN_TIPS = 32;
|
||||
|
||||
api.getFrontPage = {
|
||||
method: 'GET',
|
||||
@@ -23,6 +24,7 @@ api.getFrontPage = {
|
||||
return res.render('index.jade', {
|
||||
title: 'Habitica | Your Life The Role Playing Game',
|
||||
env: res.locals.habitrpg,
|
||||
loadingScreenTip: Math.floor(Math.random() * LOADING_SCREEN_TIPS) + 1, // Random tip between 1 and LOADING_SCREEN_TIPS
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user