mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Retain $:/status/UserName when logged out (#2893)
The user name tiddler should not be removed just because we are not logged in
This commit is contained in:
parent
3816819705
commit
4c89bbabbe
@ -178,8 +178,6 @@ Syncer.prototype.getStatus = function(callback) {
|
||||
self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? "yes" : "no"});
|
||||
if(isLoggedIn) {
|
||||
self.wiki.addTiddler({title: self.titleUserName,text: username || ""});
|
||||
} else {
|
||||
self.wiki.deleteTiddler(self.titleUserName);
|
||||
}
|
||||
// Invoke the callback
|
||||
if(callback) {
|
||||
|
Loading…
Reference in New Issue
Block a user