From 8f6f4ebd91ba247d3988785e6b52910594de02ac Mon Sep 17 00:00:00 2001 From: Solomon Cammack Date: Wed, 18 Aug 2021 06:46:57 +0100 Subject: [PATCH] Setting up for live.slmn.gg --- website/src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/main.js b/website/src/main.js index 0ec4b4b6..744bb4dd 100644 --- a/website/src/main.js +++ b/website/src/main.js @@ -52,10 +52,13 @@ let subID; domains.forEach(r => { const result = host.match(r); - if (result && result[1] && result[1] !== "dev") { + if (result && result[1] && !["dev", "live"].includes(result[1])) { if (result[1].endsWith(".dev")) { result[1] = result[1].slice(0, -4); } + if (result[1].endsWith(".live")) { + result[1] = result[1].slice(0, -5); + } subdomain = result[1]; } });