diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 5d475b9..7772b7a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
+
+
@@ -47,7 +48,7 @@
-
+
1597348071361
@@ -301,7 +302,14 @@
1597609566783
-
+
+ 1597610420208
+
+
+
+ 1597610420208
+
+
@@ -330,17 +338,18 @@
-
+
+
-
+
-
+
@@ -357,10 +366,10 @@
-
+
-
+
diff --git a/app.js b/app.js
index 28ab701..6ebf5b7 100644
--- a/app.js
+++ b/app.js
@@ -54,7 +54,7 @@ let kara = new Vue({
username: this.username
};
- if (!this.username) {
+ if (!this.username || this.username === "null") {
this.initialGreeting();
this.askForName();
@@ -345,6 +345,10 @@ let kara = new Vue({
this.messages = [];
this.botMessage('Chat cleared.');
},
+ clearStorage() {
+ localStorage.clear();
+ location.reload();
+ },
getBootswatchThemes() {
let vue = this;
diff --git a/index.html b/index.html
index 772dad2..095ec96 100644
--- a/index.html
+++ b/index.html
@@ -128,7 +128,7 @@
-