mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-24 22:33:16 +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"});
|
self.wiki.addTiddler({title: self.titleIsLoggedIn,text: isLoggedIn ? "yes" : "no"});
|
||||||
if(isLoggedIn) {
|
if(isLoggedIn) {
|
||||||
self.wiki.addTiddler({title: self.titleUserName,text: username || ""});
|
self.wiki.addTiddler({title: self.titleUserName,text: username || ""});
|
||||||
} else {
|
|
||||||
self.wiki.deleteTiddler(self.titleUserName);
|
|
||||||
}
|
}
|
||||||
// Invoke the callback
|
// Invoke the callback
|
||||||
if(callback) {
|
if(callback) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user