app.showEmailConfirmWarning :dull:

v1.18.x
Barış Soner Uşaklı 10 years ago
parent 940c33c426
commit 9d0b4f5841

@ -504,7 +504,7 @@ app.cacheBuster = null;
}); });
createHeaderTooltips(); createHeaderTooltips();
showEmailConfirmWarning(); app.showEmailConfirmWarning();
socket.removeAllListeners('event:nodebb.ready'); socket.removeAllListeners('event:nodebb.ready');
socket.on('event:nodebb.ready', function(cacheBusters) { socket.on('event:nodebb.ready', function(cacheBusters) {
@ -537,7 +537,7 @@ app.cacheBuster = null;
}); });
}; };
function showEmailConfirmWarning(err) { app.showEmailConfirmWarning = function(err) {
if (!config.requireEmailConfirmation || !app.user.uid) { if (!config.requireEmailConfirmation || !app.user.uid) {
return; return;
} }
@ -569,7 +569,7 @@ app.cacheBuster = null;
} }
}); });
} }
} };
showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1; showWelcomeMessage = window.location.href.indexOf('loggedin') !== -1;

Loading…
Cancel
Save