forked from snxraven/LinkUp-P2P-Chat
Oopsie checking if config exists didnt work (It is done by checking if username is not empty lol)
This commit is contained in:
parent
1271c48571
commit
a9f50e892b
2
app.js
2
app.js
@ -101,7 +101,7 @@ async function initialize() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const registerDiv = document.querySelector('#register');
|
const registerDiv = document.querySelector('#register');
|
||||||
if (registerDiv && !config.userName) {
|
if (registerDiv && config.userName !== '') {
|
||||||
registerDiv.classList.remove('hidden');
|
registerDiv.classList.remove('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user