Add explanations for more disconnect scenarios

This commit is contained in:
Marcel Klehr 2013-10-10 21:11:15 +02:00
parent de50efc71a
commit 7f10b9a42f
5 changed files with 56 additions and 10 deletions

View file

@ -66,11 +66,11 @@ var padconnectionstatus = (function()
};
var k = String(msg).toLowerCase(); // known reason why
if (!(k == 'userdup' || k == 'deleted' || k == 'looping' || k == 'slowcommit' || k == 'initsocketfail' || k == 'unauth'))
if (!(k == 'userdup' || k == 'deleted' || k == 'looping' || k == 'slowcommit' || k == 'initsocketfail' || k == 'unauth' || k == 'badChangeset' || k == 'corruptPad'))
{
k = 'disconnected';
}
padmodals.showModal(k);
padmodals.showOverlay();
},