Pad_cookie.js to have isCookiesEnabled() cause wasNoCookie() is also true when User visits first time.

This commit is contained in:
Mikk Andresen 2017-05-05 11:17:07 +03:00
parent 582e2c3819
commit c959cdbaa7
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -124,6 +124,9 @@ var padcookie = (function()
{
return wasNoCookie;
},
isCookiesEnabled: function() {
return !!getRawCookie();
},
getPref: function(prefName)
{
return cookieData[prefName];