ux: Better ux for if cookies are disabled or not available.

This commit is contained in:
John McLear 2020-06-01 20:17:48 +01:00 committed by GitHub
parent a4713a8308
commit 0d51e71578
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 23 deletions

View file

@ -480,11 +480,6 @@ var pad = {
// This will check if the prefs-cookie is set.
// Otherwise it shows up a message to the user.
padcookie.init();
if (!padcookie.isCookiesEnabled())
{
$('#loading').hide();
$('#noCookie').show();
}
});
},
_afterHandshake: function()

View file

@ -78,7 +78,12 @@ var padcookie = (function()
if ((!getRawCookie()) && (!alreadyWarnedAboutNoCookies))
{
alert("Warning: it appears that your browser does not have cookies enabled." + " EtherPad uses cookies to keep track of unique users for the purpose" + " of putting a quota on the number of active users. Using EtherPad without " + " cookies may fill up your server's user quota faster than expected.");
$.gritter.add({
title: "Error",
text: html10n.get("pad.noCookie"),
sticky: true,
class_name: "error"
});
alreadyWarnedAboutNoCookies = true;
}
}