mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
Merge pull request #2410 from Gared/feature/notify-user-cookies-rejected
Notify user if cookies can't be created
This commit is contained in:
commit
5df638bfac
4 changed files with 18 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue