JS Error if Popup Limitation is set up
-
In SGPBPopup.prototype.filterPopupLimitationCookie, this line threw an error, which caused the popup not to show at all:
result.cookie = jQuery.parseJSON(cookie.domainLevelCookie);
Reason: The cookie.domainLevelCookie value is empty.
I changed the code this way:
result.cookie = cookie.domainLevelCookie ? jQuery.parseJSON(cookie.domainLevelCookie) : '';
Then it worked and the popup showed.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JS Error if Popup Limitation is set up’ is closed to new replies.