Pad_cookie.js to have isCookiesEnabled() cause wasNoCookie() is also true when User visits first time.
This commit is contained in:
parent
582e2c3819
commit
c959cdbaa7
2 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -124,6 +124,9 @@ var padcookie = (function()
|
|||
{
|
||||
return wasNoCookie;
|
||||
},
|
||||
isCookiesEnabled: function() {
|
||||
return !!getRawCookie();
|
||||
},
|
||||
getPref: function(prefName)
|
||||
{
|
||||
return cookieData[prefName];
|
||||
|
|
Loading…
Reference in a new issue