mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
fixed welcome back message, it wasnt showing up in some cases
This commit is contained in:
@@ -5,7 +5,8 @@ var socket,
|
||||
|
||||
|
||||
(function() {
|
||||
|
||||
var showWelcomeMessage = false;
|
||||
|
||||
function loadConfig() {
|
||||
|
||||
$.ajax({
|
||||
@@ -285,8 +286,9 @@ var socket,
|
||||
timeout: 5000
|
||||
});
|
||||
}
|
||||
|
||||
if(location.href.indexOf('loggedin') !== -1) {
|
||||
|
||||
if(showWelcomeMessage) {
|
||||
showWelcomeMessage = false;
|
||||
if(document.readyState !== 'complete') {
|
||||
$(document).ready(showAlert);
|
||||
} else {
|
||||
@@ -371,6 +373,8 @@ var socket,
|
||||
})
|
||||
});
|
||||
|
||||
showWelcomeMessage = location.href.indexOf('loggedin') !== -1;
|
||||
|
||||
loadConfig();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user