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