Refactor/chat history #17

Merged
KevinMidboe merged 4 commits from refactor/chat-history into master 2020-06-26 11:28:59 +00:00
Showing only changes of commit efb5dfcd3e - Show all commits

View File

@@ -82,12 +82,11 @@ export default {
}, },
mounted() { mounted() {
let username = window.localStorage.getItem("username"); let username = window.localStorage.getItem("username");
if (!username) { if (username) {
return; this.username = username;
this.usernameSet = true;
this.$emit("username", username);
} }
this.username = username;
this.usernameSet = true;
this.$emit("username", username);
}, },
methods: { methods: {
pad: function(num) { pad: function(num) {