Working on Config system (Saving & Loading user data) #3
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