Merge pull request #2410 from Gared/feature/notify-user-cookies-rejected

Notify user if cookies can't be created
This commit is contained in:
Stefan 2014-12-30 14:54:43 +01:00
commit 5df638bfac
4 changed files with 18 additions and 0 deletions

View file

@ -472,6 +472,16 @@ var pad = {
if (typeof customStart == "function") customStart();
getParams();
handshake();
// To use etherpad you have to allow cookies.
// This will check if the creation of a test-cookie has success.
// Otherwise it shows up a message to the user.
createCookie("test", "test");
if (!readCookie("test"))
{
$('#loading').hide();
$('#noCookie').show();
}
});
},
_afterHandshake: function()