From a1b8c4761cc34cebd4c0aa4a68e5019af93e409b Mon Sep 17 00:00:00 2001 From: Sebastien Date: Mon, 3 Dec 2018 22:19:11 +0200 Subject: [PATCH] Correct typo and guild pop up when no mutual guild --- src/main/resources/static/js/navabar.js | 3 +++ src/main/resources/templates/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/navabar.js b/src/main/resources/static/js/navabar.js index 1e99b87..3ea931e 100644 --- a/src/main/resources/static/js/navabar.js +++ b/src/main/resources/static/js/navabar.js @@ -98,6 +98,9 @@ function getGuild(){ $('#guild_form').empty(); if(data.length === 0 && location.pathname !== "/") window.location.replace("/"); + if(data.length === 0){ + return; + } else if(data.length === 1){ Cookies.set('guild', data[0].id, { expires: 31 }); diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 340e6b5..2bf6cb0 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -73,7 +73,7 @@

Oh no !

We don't have any mutual server !

-
You can chance this by inviting me with this button !
+
You can change this by inviting me with this button !
Invite me !