From 7eaec4947eca2f4a9faa8d0c0fa88e09c91faeef Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sun, 28 Nov 2021 15:36:33 +0000 Subject: [PATCH] Update index.js --- index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 65b9dc2..808c045 100644 --- a/index.js +++ b/index.js @@ -960,7 +960,7 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }]; - + if (seasondata.season == 3) { activeEvents.push( { @@ -1026,6 +1026,8 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }) + } + if (req.headers["user-agent"].includes("Release-5.10")) { activeEvents.push( { @@ -1033,7 +1035,6 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }) - } } if (seasondata.season == 6) { @@ -1053,6 +1054,8 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }) + } + if (req.headers["user-agent"].includes("Release-6.20") || req.headers["user-agent"].includes("Release-6.21")) { activeEvents.push( { @@ -1065,7 +1068,6 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }) - } } if (seasondata.season == 7) { @@ -6001,7 +6003,8 @@ function getContentPages(req) { contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "seasonx"; contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = "seasonx"; } - if (req.headers["user-agent"].includes("Release-11.31")) { + + if (req.headers["user-agent"].includes("Release-11.31") || req.headers["user-agent"].includes("Release-11.40")) { contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "Winter19"; contentpages.dynamicbackgrounds.backgrounds.backgrounds[1].stage = "Winter19"; }