Fixed large news images on older builds.

This commit is contained in:
PRO100KatYT
2022-01-09 10:34:48 +01:00
parent b0d07ebf0d
commit 7312d301cf

View File

@@ -5953,6 +5953,17 @@ function getContentPages(req) {
}) })
} catch (err) {} } catch (err) {}
const news = ["savetheworldnews", "battleroyalenews"]
if (seasondata.season < 5 || (seasondata.season == 5 && parseInt(seasondata.build.toString().split(".")[1]) < 30)) {
try {
news.forEach(mode => {
contentpages[mode].news.messages[0].image = "https://i.imgur.com/Az6kyrk.png";
contentpages[mode].news.messages[1].image = "https://i.imgur.com/Wf8wQQy.png";
})
} catch (err) {}
}
try { try {
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = `season${seasondata.season}`; contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = `season${seasondata.season}`;
contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = `season${seasondata.season}`; contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = `season${seasondata.season}`;