mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Notify user if cookies can't be created
This commit is contained in:
parent
a645aeef5c
commit
2307c6fbda
4 changed files with 18 additions and 0 deletions
|
@ -442,6 +442,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