Skip to content

Commit

Permalink
Setting up for live.slmn.gg
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Aug 18, 2021
1 parent 5515f29 commit 8f6f4eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
});
Expand Down

0 comments on commit 8f6f4eb

Please sign in to comment.